.class public abstract Lcom/nemustech/regina/ElementReginaWidget;
.super Lcom/nemustech/regina/Element;
.source "ElementReginaWidget.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/nemustech/regina/ElementReginaWidget$WidgetBackCenterItemOnTouchListener;,
        Lcom/nemustech/regina/ElementReginaWidget$WidgetFrontCenterItemOnTouchListener;,
        Lcom/nemustech/regina/ElementReginaWidget$WidgetBackTitleItemOnTouchListener;,
        Lcom/nemustech/regina/ElementReginaWidget$WidgetFrontTitleItemOnTouchListener;,
        Lcom/nemustech/regina/ElementReginaWidget$Gadget;,
        Lcom/nemustech/regina/ElementReginaWidget$RowSettingRunnable;,
        Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;,
        Lcom/nemustech/regina/ElementReginaWidget$FrontCenterItemPanelJit;
    }
.end annotation


# static fields
.field public static final FADING_TIME:I = 0x96

.field public static final MORPHING_TIME:I = 0x12c

.field private static final MORPH_MODE_EXT:I = 0x1

.field private static final MORPH_MODE_SHRINK:I = 0x0

.field private static final PAGING_WIDGET_MIN_ROW:I = 0x1

.field public static final PANEL_FACE_BACK:I = 0x1

.field public static final PANEL_FACE_FRONT:I = 0x0

.field private static final TAG:Ljava/lang/String; = "ElementReginaWidget"

.field private static final TOUCH_STATE_DOWN:I = 0x2

.field private static final TOUCH_STATE_DRAG:I = 0x1

.field private static final TOUCH_STATE_LONG_DOWN:I = 0x3

.field private static final TOUCH_STATE_NONE:I = 0x0

.field public static final WIDGET_FACE_BACK:I = 0x1

.field public static final WIDGET_FACE_BACK_TITLE:I = 0x3

.field public static final WIDGET_FACE_FRONT:I = 0x0

.field public static final WIDGET_FACE_FRONT_TITLE:I = 0x2


# instance fields
.field private final DEBUG_LOG_DISPLAY:Z

.field mActorRowSetting:Ljava/lang/Runnable;

.field private mActorShowBack:Ljava/lang/Runnable;

.field private mActorShowFront:Ljava/lang/Runnable;

.field protected mBackCenter2DHeight:I

.field protected mBackCenter3DHeight:F

.field protected mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mBackCenterItemPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field protected mBackCenterMin3DHeight:F

.field protected mBackCenterMorph2DHeight:I

.field protected mBackCenterMorph3DHeight:F

.field private mBackGadgetList:Ljava/util/LinkedList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedList",
            "<",
            "Lcom/nemustech/regina/ElementReginaWidget$Gadget;",
            ">;"
        }
    .end annotation
.end field

.field protected mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field protected mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

.field protected mBackMorph:Z

.field protected mBackTitle2DHeight:I

.field protected mBackTitle3DHeight:F

.field private mBackTitleGadgetList:Ljava/util/LinkedList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedList",
            "<",
            "Lcom/nemustech/regina/ElementReginaWidget$Gadget;",
            ">;"
        }
    .end annotation
.end field

.field protected mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mBackTitleItemPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field protected mBottom2DHeight:I

.field protected mBottom3DHeight:F

.field protected mBottomPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mBottomPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field protected mCenter2DHeight:I

.field protected mCenter3DHeight:F

.field protected mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mCenterPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field protected mCurrPage:I

.field protected mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field mFrontCenterItemPanelJit:Lcom/nemustech/regina/ElementReginaWidget$FrontCenterItemPanelJit;

.field protected mFrontCenterNextHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mFrontCenterNextHighLightPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field protected mFrontCenterPrevHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mFrontCenterPrevHighLightPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field private mFrontGadgetList:Ljava/util/LinkedList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedList",
            "<",
            "Lcom/nemustech/regina/ElementReginaWidget$Gadget;",
            ">;"
        }
    .end annotation
.end field

.field protected mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mFrontHighLightPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field private mFrontTitleGadgetList:Ljava/util/LinkedList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedList",
            "<",
            "Lcom/nemustech/regina/ElementReginaWidget$Gadget;",
            ">;"
        }
    .end annotation
.end field

.field protected mFrontTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mFrontTitleItemPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field private mGadgetList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Ljava/util/LinkedList",
            "<",
            "Lcom/nemustech/regina/ElementReginaWidget$Gadget;",
            ">;>;"
        }
    .end annotation
.end field

.field protected mHasPaging:Z

.field private mInitAreaRect:Landroid/graphics/Rect;

.field private mItemNumPerPageList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field protected mMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

.field protected mOneRow2DHeight:I

.field private mOneRowCenterPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field protected mPaging2DHeight:I

.field protected mPrefRowNum:I

.field protected mRC:Lcom/nemustech/regina/ResourceCare;

.field protected mResources:Landroid/content/res/Resources;

.field protected mSettingsNum:I

.field protected mTitle2DHeight:I

.field protected mTitle3DHeight:F

.field private mTitleItemSelectPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field protected mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mTitlePanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field protected mTotalItemNum:I

.field private mTouchAreaStartOffset:I

.field protected mWidget:Lcom/nemustech/tiffany/world/TFHolder;

.field protected mWidget2DWidth:I

.field protected mWidget3DWidth:F

.field private mWidgetBackCenterOnTouchListener:Lcom/nemustech/regina/ElementReginaWidget$WidgetBackCenterItemOnTouchListener;

.field protected mWidgetCaption:Ljava/lang/String;

.field private mWidgetCenterOnTouchListener:Lcom/nemustech/regina/ElementReginaWidget$WidgetFrontCenterItemOnTouchListener;

.field private mWidgetFrontTitleOnTouchListener:Lcom/nemustech/regina/ElementReginaWidget$WidgetFrontTitleItemOnTouchListener;

.field private mWidgetTitleBackOnTouchListener:Lcom/nemustech/regina/ElementReginaWidget$WidgetBackTitleItemOnTouchListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;Z)V
    .locals 6
    .parameter "context"
    .parameter "hasPaging"

    .prologue
    const/4 v5, 0x0

    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 1274
    invoke-direct {p0}, Lcom/nemustech/regina/Element;-><init>()V

    .line 39
    iput-boolean v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->DEBUG_LOG_DISPLAY:Z

    .line 135
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$1;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementReginaWidget$1;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 152
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$2;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementReginaWidget$2;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleItemPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 167
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$3;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementReginaWidget$3;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleItemPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 181
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$4;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementReginaWidget$4;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 195
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$5;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementReginaWidget$5;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRowCenterPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 207
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$6;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementReginaWidget$6;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottomPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 234
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$FrontCenterItemPanelJit;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementReginaWidget$FrontCenterItemPanelJit;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanelJit:Lcom/nemustech/regina/ElementReginaWidget$FrontCenterItemPanelJit;

    .line 236
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$7;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementReginaWidget$7;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 249
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$8;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementReginaWidget$8;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 259
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$9;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementReginaWidget$9;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitleItemSelectPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 269
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$10;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementReginaWidget$10;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterPrevHighLightPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 276
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$11;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementReginaWidget$11;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterNextHighLightPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 308
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$12;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementReginaWidget$12;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mActorShowBack:Ljava/lang/Runnable;

    .line 342
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$13;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementReginaWidget$13;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mActorShowFront:Ljava/lang/Runnable;

    .line 426
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$RowSettingRunnable;

    iget-wide v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mElementId:J

    invoke-direct {v0, p0, v1, v2}, Lcom/nemustech/regina/ElementReginaWidget$RowSettingRunnable;-><init>(Lcom/nemustech/regina/ElementReginaWidget;J)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mActorRowSetting:Ljava/lang/Runnable;

    .line 1275
    iput-object p1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    .line 1276
    iput v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTouchAreaStartOffset:I

    .line 1277
    iput-boolean p2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mHasPaging:Z

    .line 1278
    iput-boolean v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMorph:Z

    .line 1279
    iput v5, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterMorph3DHeight:F

    .line 1280
    iput v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterMorph2DHeight:I

    .line 1282
    iput v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCurrPage:I

    .line 1283
    iput v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mSettingsNum:I

    .line 1285
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    .line 1286
    invoke-static {p1}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    .line 1288
    invoke-virtual {p0, v4}, Lcom/nemustech/regina/ElementReginaWidget;->setJitImageProvideMode(Z)V

    .line 1290
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v1, 0x7f060047

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    .line 1291
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    const v1, 0x7f02008f

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mPaging2DHeight:I

    .line 1292
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    mul-int/lit8 v1, v1, 0x3

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->convertTo3DPosY(Landroid/content/Context;I)F

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterMin3DHeight:F

    .line 1293
    new-instance v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-direct {v0, v3}, Lcom/nemustech/tiffany/world/TFPlaceHolder;-><init>(Z)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    .line 1294
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    const-string v1, "ElementReginaWidget Widget Holder"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFHolder;->mDescription:Ljava/lang/String;

    .line 1296
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-direct {v0, p0, v4}, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Z)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    .line 1297
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    const-string v1, "ElementReginaWidget Main Holder"

    iput-object v1, v0, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;->mDescription:Ljava/lang/String;

    .line 1299
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-direct {v0, p0, v4}, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Z)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    .line 1300
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    const-string v1, "ElementReginaWidget Back Main Holder"

    iput-object v1, v0, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;->mDescription:Ljava/lang/String;

    .line 1301
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    const/high16 v1, 0x4334

    invoke-virtual {v0, v1, v5}, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;->look(FF)V

    .line 1304
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mGadgetList:Ljava/util/ArrayList;

    .line 1305
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontGadgetList:Ljava/util/LinkedList;

    .line 1306
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mGadgetList:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontGadgetList:Ljava/util/LinkedList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1308
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackGadgetList:Ljava/util/LinkedList;

    .line 1309
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mGadgetList:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackGadgetList:Ljava/util/LinkedList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1311
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleGadgetList:Ljava/util/LinkedList;

    .line 1312
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mGadgetList:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleGadgetList:Ljava/util/LinkedList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1314
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleGadgetList:Ljava/util/LinkedList;

    .line 1315
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mGadgetList:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleGadgetList:Ljava/util/LinkedList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1316
    return-void
.end method

.method static synthetic access$000(Lcom/nemustech/regina/ElementReginaWidget;)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->drawFrontTitleItemBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$100(Lcom/nemustech/regina/ElementReginaWidget;)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->drawBackTitleItemBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$1000(Lcom/nemustech/regina/ElementReginaWidget;)Ljava/util/ArrayList;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mGadgetList:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$1100(Lcom/nemustech/regina/ElementReginaWidget;I)I
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 36
    invoke-direct {p0, p1}, Lcom/nemustech/regina/ElementReginaWidget;->getStartItemIndex(I)I

    move-result v0

    return v0
.end method

.method static synthetic access$1200(Lcom/nemustech/regina/ElementReginaWidget;)Ljava/util/ArrayList;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mItemNumPerPageList:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$1300(Lcom/nemustech/regina/ElementReginaWidget;IILjava/util/List;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"
    .parameter "x3"

    .prologue
    .line 36
    invoke-direct {p0, p1, p2, p3}, Lcom/nemustech/regina/ElementReginaWidget;->initPageCountList(IILjava/util/List;)V

    return-void
.end method

.method static synthetic access$1400(Lcom/nemustech/regina/ElementReginaWidget;I)I
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 36
    invoke-direct {p0, p1}, Lcom/nemustech/regina/ElementReginaWidget;->getPageInItem(I)I

    move-result v0

    return v0
.end method

.method static synthetic access$1500(Lcom/nemustech/regina/ElementReginaWidget;)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->drawFrontCenterNoSepLineBgBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$200(Lcom/nemustech/regina/ElementReginaWidget;)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->drawFrontCenterBgBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$2000(Lcom/nemustech/regina/ElementReginaWidget;F)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 36
    invoke-direct {p0, p1}, Lcom/nemustech/regina/ElementReginaWidget;->morphShift(F)V

    return-void
.end method

.method static synthetic access$300(Lcom/nemustech/regina/ElementReginaWidget;)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->drawBackCenterBgBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$400(Lcom/nemustech/regina/ElementReginaWidget;)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->drawFrontOneRowCenterBgBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$500(Lcom/nemustech/regina/ElementReginaWidget;)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->drawFrontBottomBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$600(Lcom/nemustech/regina/ElementReginaWidget;)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->drawBackBottomBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$700(Lcom/nemustech/regina/ElementReginaWidget;)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->drawBackItemBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$800(Lcom/nemustech/regina/ElementReginaWidget;I)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 36
    invoke-direct {p0, p1}, Lcom/nemustech/regina/ElementReginaWidget;->morphExtWidgetBack(I)V

    return-void
.end method

.method private arrangePanelsInMainHolder()V
    .locals 8

    .prologue
    const v7, 0x3727c5ac

    const/high16 v6, 0x4000

    const/4 v5, 0x0

    .line 1739
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v3}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v3

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v4

    add-float/2addr v3, v4

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottomPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v4

    add-float v0, v3, v4

    .line 1741
    .local v0, height3D:F
    div-float v1, v0, v6

    .line 1742
    .local v1, yLength:F
    move v2, v1

    .line 1745
    .local v2, yReminder:F
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v4

    div-float/2addr v4, v6

    sub-float v4, v2, v4

    invoke-virtual {v3, v5, v4, v5}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 1746
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v4

    div-float/2addr v4, v6

    sub-float v4, v2, v4

    invoke-virtual {v3, v5, v4, v5}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 1747
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasBack()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 1748
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v4

    div-float/2addr v4, v6

    sub-float v4, v2, v4

    invoke-virtual {v3, v5, v4, v5}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 1750
    :cond_0
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v3}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v3

    sub-float v3, v2, v3

    sub-float v2, v3, v7

    .line 1753
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v4

    div-float/2addr v4, v6

    sub-float v4, v2, v4

    invoke-virtual {v3, v5, v4, v5}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 1754
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v4

    div-float/2addr v4, v6

    sub-float v4, v2, v4

    invoke-virtual {v3, v5, v4, v5}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 1755
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasBack()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 1756
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v4

    div-float/2addr v4, v6

    sub-float v4, v2, v4

    invoke-virtual {v3, v5, v4, v5}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 1758
    :cond_1
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v3}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v3

    sub-float v3, v2, v3

    add-float v2, v3, v7

    .line 1761
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottomPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottomPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v4

    div-float/2addr v4, v6

    sub-float v4, v2, v4

    invoke-virtual {v3, v5, v4, v5}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 1762
    return-void
.end method

.method private attachPanelsToMainHolder()V
    .locals 2

    .prologue
    .line 1722
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1723
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1724
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1726
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1727
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1729
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasBack()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1730
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1731
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1732
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1735
    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottomPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1736
    return-void
.end method

.method private create()V
    .locals 0

    .prologue
    .line 1620
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->onCreate()V

    .line 1621
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->resume()V

    .line 1622
    return-void
.end method

.method private drawBackBottomBitmap()Landroid/graphics/Bitmap;
    .locals 2

    .prologue
    .line 1916
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    const v1, 0x7f020084

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method private drawBackCenterBgBitmap()Landroid/graphics/Bitmap;
    .locals 2

    .prologue
    .line 1890
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    const v1, 0x7f020086

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method private drawBackItemBitmap()Landroid/graphics/Bitmap;
    .locals 24

    .prologue
    .line 2162
    const/4 v9, 0x0

    .line 2164
    .local v9, itemBitmap:Landroid/graphics/Bitmap;
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget2DWidth:I

    move/from16 v19, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    move-object/from16 v20, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    move-object/from16 v21, v0

    invoke-virtual/range {v21 .. v21}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v21

    invoke-static/range {v20 .. v21}, Lcom/nemustech/regina/RUtils;->convertTo2DSize(Landroid/content/Context;F)I

    move-result v20

    sget-object v21, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static/range {v19 .. v21}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v9

    .line 2166
    new-instance v10, Landroid/graphics/Canvas;

    invoke-direct {v10, v9}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 2168
    .local v10, itemCanvas:Landroid/graphics/Canvas;
    const/16 v19, 0x1

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget;->resetGadgets(I)V

    .line 2169
    const/16 v19, 0x0

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget;->setSettingsNum(I)V

    .line 2171
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ElementReginaWidget;->incSettingsNum()V

    .line 2173
    new-instance v13, Landroid/graphics/Rect;

    invoke-direct {v13}, Landroid/graphics/Rect;-><init>()V

    .line 2174
    .local v13, rtArea:Landroid/graphics/Rect;
    const/16 v19, 0x0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mTouchAreaStartOffset:I

    move/from16 v20, v0

    add-int/lit8 v20, v20, 0x0

    invoke-virtual {v9}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v21

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    move/from16 v22, v0

    move-object v0, v13

    move/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    move/from16 v4, v22

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;->set(IIII)V

    .line 2176
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v19, v0

    const v20, 0x7f060048

    invoke-virtual/range {v19 .. v20}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v17

    .line 2177
    .local v17, vMargin:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v19, v0

    const v20, 0x7f060049

    invoke-virtual/range {v19 .. v20}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v7

    .line 2178
    .local v7, hMargin:I
    move v5, v7

    .line 2179
    .local v5, drawXOffset:I
    const/16 v18, 0x0

    .line 2182
    .local v18, yPos:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v19, v0

    const v20, 0x7f020056

    invoke-static/range {v19 .. v20}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v15

    .line 2183
    .local v15, settingIconBitmap:Landroid/graphics/Bitmap;
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    move/from16 v19, v0

    div-int/lit8 v19, v19, 0x2

    invoke-virtual {v15}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v20

    div-int/lit8 v20, v20, 0x2

    sub-int v18, v19, v20

    .line 2184
    move v0, v5

    int-to-float v0, v0

    move/from16 v19, v0

    move/from16 v0, v18

    int-to-float v0, v0

    move/from16 v20, v0

    new-instance v21, Landroid/graphics/Paint;

    invoke-direct/range {v21 .. v21}, Landroid/graphics/Paint;-><init>()V

    move-object v0, v10

    move-object v1, v15

    move/from16 v2, v19

    move/from16 v3, v20

    move-object/from16 v4, v21

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 2185
    invoke-virtual {v15}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v19

    add-int v5, v5, v19

    .line 2188
    new-instance v8, Landroid/graphics/Paint;

    invoke-direct {v8}, Landroid/graphics/Paint;-><init>()V

    .line 2189
    .local v8, infoPaint:Landroid/graphics/Paint;
    const/16 v19, 0x1

    move-object v0, v8

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 2190
    sget-object v19, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    move-object v0, v8

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 2191
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v19, v0

    const v20, 0x7f06004a

    invoke-virtual/range {v19 .. v20}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v19

    move/from16 v0, v19

    int-to-float v0, v0

    move/from16 v19, v0

    move-object v0, v8

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 2192
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v19, v0

    const v20, 0x7f050006

    invoke-virtual/range {v19 .. v20}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v19

    move-object v0, v8

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 2193
    const/high16 v19, 0x3f00

    const/high16 v20, 0x3f80

    const/high16 v21, 0x3f80

    const/high16 v22, -0x100

    move-object v0, v8

    move/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    move/from16 v4, v22

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    .line 2194
    new-instance v16, Landroid/graphics/Rect;

    invoke-direct/range {v16 .. v16}, Landroid/graphics/Rect;-><init>()V

    .line 2195
    .local v16, textRt:Landroid/graphics/Rect;
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ElementReginaWidget;->getPrefRowNum()I

    move-result v19

    if-lez v19, :cond_0

    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ElementReginaWidget;->getPrefRowNum()I

    move-result v19

    move/from16 v11, v19

    .line 2196
    .local v11, rowNum:I
    :goto_0
    new-instance v19, Ljava/lang/StringBuilder;

    invoke-direct/range {v19 .. v19}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v20, v0

    const v21, 0x7f070023

    invoke-virtual/range {v20 .. v21}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    const-string v20, " : "

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-static {v11}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    .line 2197
    .local v12, rowSetting:Ljava/lang/String;
    const/16 v19, 0x0

    invoke-virtual {v12}, Ljava/lang/String;->length()I

    move-result v20

    move-object v0, v8

    move-object v1, v12

    move/from16 v2, v19

    move/from16 v3, v20

    move-object/from16 v4, v16

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    .line 2199
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    move/from16 v19, v0

    div-int/lit8 v19, v19, 0x2

    invoke-virtual/range {v16 .. v16}, Landroid/graphics/Rect;->height()I

    move-result v20

    div-int/lit8 v20, v20, 0x3

    add-int v18, v19, v20

    .line 2200
    add-int v19, v5, v7

    move/from16 v0, v19

    int-to-float v0, v0

    move/from16 v19, v0

    move/from16 v0, v18

    int-to-float v0, v0

    move/from16 v20, v0

    move-object v0, v10

    move-object v1, v12

    move/from16 v2, v19

    move/from16 v3, v20

    move-object v4, v8

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 2204
    new-instance v14, Landroid/graphics/Rect;

    move-object v0, v13

    iget v0, v0, Landroid/graphics/Rect;->left:I

    move/from16 v19, v0

    add-int/lit8 v19, v19, 0x5

    move-object v0, v13

    iget v0, v0, Landroid/graphics/Rect;->top:I

    move/from16 v20, v0

    move-object v0, v13

    iget v0, v0, Landroid/graphics/Rect;->right:I

    move/from16 v21, v0

    const/16 v22, 0x5

    sub-int v21, v21, v22

    move-object v0, v13

    iget v0, v0, Landroid/graphics/Rect;->bottom:I

    move/from16 v22, v0

    move-object v0, v14

    move/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    move/from16 v4, v22

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 2205
    .local v14, settingAreaRt:Landroid/graphics/Rect;
    new-instance v6, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    const/16 v19, 0x0

    move-object v0, v6

    move-object/from16 v1, p0

    move-object v2, v14

    move-object/from16 v3, v19

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Landroid/graphics/Rect;Landroid/graphics/Rect;)V

    .line 2206
    .local v6, gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    const/16 v19, 0x6

    move-object v0, v6

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setGadgetType(I)V

    .line 2207
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mActorRowSetting:Ljava/lang/Runnable;

    move-object/from16 v19, v0

    move-object v0, v6

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setActor(Ljava/lang/Runnable;)V

    .line 2208
    const/16 v19, 0x1

    move-object/from16 v0, p0

    move/from16 v1, v19

    move-object v2, v6

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ElementReginaWidget;->addGadget(ILcom/nemustech/regina/ElementReginaWidget$Gadget;)V

    .line 2210
    const/16 v19, 0x0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    move/from16 v20, v0

    move-object v0, v13

    move/from16 v1, v19

    move/from16 v2, v20

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Rect;->offset(II)V

    .line 2211
    new-instance v19, Landroid/graphics/Rect;

    const/16 v20, 0x0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    move/from16 v21, v0

    invoke-virtual {v9}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v22

    invoke-virtual {v9}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v23

    invoke-direct/range {v19 .. v23}, Landroid/graphics/Rect;-><init>(IIII)V

    const/16 v20, 0x0

    move-object/from16 v0, p0

    move-object v1, v9

    move-object/from16 v2, v19

    move/from16 v3, v20

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget;->onDrawBackItem(Landroid/graphics/Bitmap;Landroid/graphics/Rect;I)V

    .line 2213
    return-object v9

    .line 2195
    .end local v6           #gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .end local v11           #rowNum:I
    .end local v12           #rowSetting:Ljava/lang/String;
    .end local v14           #settingAreaRt:Landroid/graphics/Rect;
    :cond_0
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v19

    move/from16 v11, v19

    goto/16 :goto_0
.end method

.method private drawBackTitleItemBitmap()Landroid/graphics/Bitmap;
    .locals 14

    .prologue
    .line 1988
    const/4 v10, 0x0

    .line 1989
    .local v10, titleItemBitmap:Landroid/graphics/Bitmap;
    const/4 v5, 0x0

    .line 1990
    .local v5, icon:Landroid/graphics/Bitmap;
    const/4 v11, 0x0

    .line 1991
    .local v11, titleItemCanvas:Landroid/graphics/Canvas;
    const/16 v8, 0xa

    .line 1993
    .local v8, titleHeightOffset:I
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasTitle()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 1994
    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget2DWidth:I

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitle2DHeight:I

    sget-object v3, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v1, v2, v3}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v10

    .line 1995
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v2, 0x7f060043

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v9

    .line 1997
    .local v9, titleHor2DMargin:I
    new-instance v11, Landroid/graphics/Canvas;

    .end local v11           #titleItemCanvas:Landroid/graphics/Canvas;
    invoke-direct {v11, v10}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 1999
    .restart local v11       #titleItemCanvas:Landroid/graphics/Canvas;
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    const v2, 0x7f020059

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v5

    .line 2000
    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget2DWidth:I

    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v2

    sub-int/2addr v1, v2

    sub-int v2, v1, v9

    .line 2001
    .local v2, x:I
    invoke-virtual {v10}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v1

    div-int/lit8 v1, v1, 0x2

    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v3

    div-int/lit8 v3, v3, 0x2

    sub-int v3, v1, v3

    .line 2002
    .local v3, y:I
    int-to-float v1, v2

    int-to-float v4, v3

    const/4 v6, 0x0

    invoke-virtual {v11, v5, v1, v4, v6}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 2004
    const/4 v1, 0x3

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ElementReginaWidget;->resetGadgets(I)V

    .line 2006
    new-instance v4, Landroid/graphics/Rect;

    invoke-direct {v4}, Landroid/graphics/Rect;-><init>()V

    .line 2007
    .local v4, touchedIconArea:Landroid/graphics/Rect;
    const/16 v13, 0xa

    .line 2008
    .local v13, widthOffset:I
    const/16 v7, 0xa

    .line 2010
    .local v7, heightOffset:I
    sub-int v1, v2, v13

    iput v1, v4, Landroid/graphics/Rect;->left:I

    .line 2011
    sub-int v1, v3, v7

    iput v1, v4, Landroid/graphics/Rect;->top:I

    .line 2012
    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v1

    add-int/2addr v1, v2

    iget-object v6, p0, Lcom/nemustech/regina/ElementReginaWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v8, 0x7f060043

    invoke-virtual {v6, v8}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    .end local v8           #titleHeightOffset:I
    move-result v6

    add-int/2addr v1, v6

    sub-int/2addr v1, v13

    iput v1, v4, Landroid/graphics/Rect;->right:I

    .line 2014
    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v1

    add-int/2addr v1, v3

    add-int/2addr v1, v7

    iput v1, v4, Landroid/graphics/Rect;->bottom:I

    .line 2016
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;-><init>(Lcom/nemustech/regina/ElementReginaWidget;IILandroid/graphics/Rect;Landroid/graphics/Bitmap;)V

    .line 2017
    .local v0, showFrontGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setGadgetType(I)V

    .line 2018
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mActorShowFront:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setActor(Ljava/lang/Runnable;)V

    .line 2019
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleGadgetList:Ljava/util/LinkedList;

    invoke-virtual {v1, v0}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 2021
    invoke-virtual {v0}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->getTouchedArea()Landroid/graphics/Rect;

    move-result-object v6

    .line 2022
    .local v6, area:Landroid/graphics/Rect;
    new-instance v12, Landroid/graphics/Rect;

    const/16 v1, 0xa

    iget v2, v6, Landroid/graphics/Rect;->left:I

    .end local v2           #x:I
    invoke-virtual {v10}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v3

    .end local v3           #y:I
    const/16 v4, 0xa

    sub-int/2addr v3, v4

    invoke-direct {v12, v9, v1, v2, v3}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 2024
    .end local v4           #touchedIconArea:Landroid/graphics/Rect;
    .local v12, titleRect:Landroid/graphics/Rect;
    invoke-virtual {p0, v10, v12}, Lcom/nemustech/regina/ElementReginaWidget;->onDrawBackTitle(Landroid/graphics/Bitmap;Landroid/graphics/Rect;)V

    .line 2029
    .end local v0           #showFrontGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .end local v6           #area:Landroid/graphics/Rect;
    .end local v7           #heightOffset:I
    .end local v9           #titleHor2DMargin:I
    .end local v12           #titleRect:Landroid/graphics/Rect;
    .end local v13           #widthOffset:I
    :goto_0
    return-object v10

    .line 2026
    .restart local v8       #titleHeightOffset:I
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    const v2, 0x7f020060

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v10

    goto :goto_0
.end method

.method private drawFrontBottomBitmap()Landroid/graphics/Bitmap;
    .locals 2

    .prologue
    .line 1912
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    const v1, 0x7f020084

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method private drawFrontCenterBgBitmap()Landroid/graphics/Bitmap;
    .locals 1

    .prologue
    .line 1850
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->drawFrontCenterNoSepLineBgBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1851
    .local v0, centerBgBitmap:Landroid/graphics/Bitmap;
    invoke-direct {p0, v0}, Lcom/nemustech/regina/ElementReginaWidget;->drawSeperateLines(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1852
    return-object v0
.end method

.method private drawFrontCenterNoSepLineBgBitmap()Landroid/graphics/Bitmap;
    .locals 8

    .prologue
    const/4 v7, 0x0

    .line 1865
    const/4 v2, 0x0

    .line 1866
    .local v2, centerBitmap:Landroid/graphics/Bitmap;
    iget v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget2DWidth:I

    iget v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter2DHeight:I

    sget-object v5, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v3, v4, v5}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v2

    .line 1868
    new-instance v0, Landroid/graphics/Canvas;

    invoke-direct {v0, v2}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 1869
    .local v0, canvas:Landroid/graphics/Canvas;
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    const v4, 0x7f020086

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 1870
    .local v1, centerBgBitmap:Landroid/graphics/Bitmap;
    new-instance v3, Landroid/graphics/Rect;

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v4

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v5

    invoke-direct {v3, v7, v7, v4, v5}, Landroid/graphics/Rect;-><init>(IIII)V

    new-instance v4, Landroid/graphics/Rect;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v5

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v6

    invoke-direct {v4, v7, v7, v5, v6}, Landroid/graphics/Rect;-><init>(IIII)V

    const/4 v5, 0x0

    invoke-virtual {v0, v1, v3, v4, v5}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 1872
    return-object v2
.end method

.method private drawFrontOneRowCenterBgBitmap()Landroid/graphics/Bitmap;
    .locals 7

    .prologue
    const/4 v6, 0x0

    .line 1856
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    const v4, 0x7f020061

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1857
    .local v0, bgBitmap:Landroid/graphics/Bitmap;
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v3

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v4

    sget-object v5, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v3, v4, v5}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 1858
    .local v1, bitmap:Landroid/graphics/Bitmap;
    new-instance v2, Landroid/graphics/Canvas;

    invoke-direct {v2, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 1859
    .local v2, canvas:Landroid/graphics/Canvas;
    const/4 v3, 0x0

    invoke-virtual {v2, v0, v6, v6, v3}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 1861
    return-object v0
.end method

.method private drawFrontTitleItemBitmap()Landroid/graphics/Bitmap;
    .locals 15

    .prologue
    .line 1936
    const/4 v10, 0x0

    .line 1937
    .local v10, titleItemBitmap:Landroid/graphics/Bitmap;
    const/4 v5, 0x0

    .line 1938
    .local v5, icon:Landroid/graphics/Bitmap;
    const/16 v8, 0xa

    .line 1939
    .local v8, titleHeightOffset:I
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasTitle()Z

    move-result v1

    if-eqz v1, :cond_1

    .line 1943
    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget2DWidth:I

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitle2DHeight:I

    sget-object v3, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v1, v2, v3}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v10

    .line 1944
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v2, 0x7f060043

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v9

    .line 1946
    .local v9, titleHor2DMargin:I
    const/4 v0, 0x0

    .line 1947
    .local v0, showBackGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    new-instance v12, Landroid/graphics/Rect;

    invoke-direct {v12}, Landroid/graphics/Rect;-><init>()V

    .line 1948
    .local v12, titleRect:Landroid/graphics/Rect;
    iget v13, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget2DWidth:I

    .line 1949
    .local v13, titleRectRight:I
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasBack()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 1950
    new-instance v11, Landroid/graphics/Canvas;

    invoke-direct {v11, v10}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 1951
    .local v11, titleItemCanvas:Landroid/graphics/Canvas;
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    const v2, 0x7f020058

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v5

    .line 1952
    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget2DWidth:I

    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v2

    sub-int/2addr v1, v2

    sub-int v2, v1, v9

    .line 1953
    .local v2, x:I
    invoke-virtual {v10}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v1

    div-int/lit8 v1, v1, 0x2

    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v3

    div-int/lit8 v3, v3, 0x2

    sub-int v3, v1, v3

    .line 1954
    .local v3, y:I
    int-to-float v1, v2

    int-to-float v4, v3

    const/4 v6, 0x0

    invoke-virtual {v11, v5, v1, v4, v6}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 1956
    const/4 v1, 0x2

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ElementReginaWidget;->resetGadgets(I)V

    .line 1958
    new-instance v4, Landroid/graphics/Rect;

    invoke-direct {v4}, Landroid/graphics/Rect;-><init>()V

    .line 1959
    .local v4, touchedIconArea:Landroid/graphics/Rect;
    const/16 v14, 0xa

    .line 1960
    .local v14, widthOffset:I
    const/16 v7, 0xa

    .line 1962
    .local v7, heightOffset:I
    sub-int v1, v2, v14

    iput v1, v4, Landroid/graphics/Rect;->left:I

    .line 1963
    sub-int v1, v3, v7

    iput v1, v4, Landroid/graphics/Rect;->top:I

    .line 1964
    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v1

    add-int/2addr v1, v2

    iget-object v6, p0, Lcom/nemustech/regina/ElementReginaWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v8, 0x7f060043

    invoke-virtual {v6, v8}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    .end local v8           #titleHeightOffset:I
    move-result v6

    add-int/2addr v1, v6

    sub-int/2addr v1, v14

    iput v1, v4, Landroid/graphics/Rect;->right:I

    .line 1966
    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v1

    add-int/2addr v1, v3

    add-int/2addr v1, v7

    iput v1, v4, Landroid/graphics/Rect;->bottom:I

    .line 1968
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    .end local v0           #showBackGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;-><init>(Lcom/nemustech/regina/ElementReginaWidget;IILandroid/graphics/Rect;Landroid/graphics/Bitmap;)V

    .line 1969
    .restart local v0       #showBackGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mActorShowBack:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setActor(Ljava/lang/Runnable;)V

    .line 1970
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setGadgetType(I)V

    .line 1971
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleGadgetList:Ljava/util/LinkedList;

    invoke-virtual {v1, v0}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 1973
    invoke-virtual {v0}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->getTouchedArea()Landroid/graphics/Rect;

    move-result-object v6

    .line 1974
    .local v6, area:Landroid/graphics/Rect;
    iget v13, v6, Landroid/graphics/Rect;->left:I

    .line 1977
    .end local v2           #x:I
    .end local v3           #y:I
    .end local v4           #touchedIconArea:Landroid/graphics/Rect;
    .end local v6           #area:Landroid/graphics/Rect;
    .end local v7           #heightOffset:I
    .end local v11           #titleItemCanvas:Landroid/graphics/Canvas;
    .end local v14           #widthOffset:I
    :cond_0
    new-instance v12, Landroid/graphics/Rect;

    .end local v12           #titleRect:Landroid/graphics/Rect;
    const/16 v1, 0xa

    invoke-virtual {v10}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    const/16 v3, 0xa

    sub-int/2addr v2, v3

    invoke-direct {v12, v9, v1, v13, v2}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1979
    .restart local v12       #titleRect:Landroid/graphics/Rect;
    invoke-virtual {p0, v10, v12}, Lcom/nemustech/regina/ElementReginaWidget;->onDrawFrontTitle(Landroid/graphics/Bitmap;Landroid/graphics/Rect;)V

    .line 1984
    .end local v0           #showBackGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .end local v9           #titleHor2DMargin:I
    .end local v12           #titleRect:Landroid/graphics/Rect;
    .end local v13           #titleRectRight:I
    :goto_0
    return-object v10

    .line 1981
    .restart local v8       #titleHeightOffset:I
    :cond_1
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    const v2, 0x7f020060

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v10

    goto :goto_0
.end method

.method private drawSeperateLines(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
    .locals 5
    .parameter "bitmap"

    .prologue
    const/4 v4, 0x1

    .line 1877
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasHorLine()Z

    move-result v2

    if-eqz v2, :cond_1

    .line 1878
    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    iget v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    div-int/2addr v2, v3

    sub-int v1, v2, v4

    .line 1879
    .local v1, lineCount:I
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->isDrawPaging()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 1880
    sub-int/2addr v1, v4

    .line 1882
    :cond_0
    const/4 v0, 0x1

    .local v0, i:I
    :goto_0
    if-gt v0, v1, :cond_1

    .line 1883
    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    mul-int/2addr v2, v0

    invoke-virtual {p0, p1, v2}, Lcom/nemustech/regina/ElementReginaWidget;->drawSeperateLine(Landroid/graphics/Bitmap;I)V

    .line 1882
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 1886
    .end local v0           #i:I
    .end local v1           #lineCount:I
    :cond_1
    return-object p1
.end method

.method private getDispItemCount(I)I
    .locals 3
    .parameter "page"

    .prologue
    .line 2282
    if-gez p1, :cond_0

    .line 2283
    const/4 v1, 0x0

    .line 2295
    .end local p0
    :goto_0
    return v1

    .line 2285
    .restart local p0
    :cond_0
    const/4 v0, 0x0

    .line 2287
    .local v0, rCount:I
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getLastPageNum()I

    move-result v1

    if-le p1, v1, :cond_2

    .line 2288
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getLastPageNum()I

    move-result v1

    if-ltz v1, :cond_1

    .line 2289
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mItemNumPerPageList:Ljava/util/ArrayList;

    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getLastPageNum()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Ljava/lang/Integer;

    invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    :cond_1
    :goto_1
    move v1, v0

    .line 2295
    goto :goto_0

    .line 2292
    .restart local p0
    :cond_2
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mItemNumPerPageList:Ljava/util/ArrayList;

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Ljava/lang/Integer;

    invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    goto :goto_1
.end method

.method private getLastPageNum()I
    .locals 2

    .prologue
    .line 2278
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mItemNumPerPageList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    return v0
.end method

.method private getPageInItem(I)I
    .locals 3
    .parameter "index"

    .prologue
    .line 2245
    const/4 v1, 0x0

    .line 2246
    .local v1, itemCount:I
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mItemNumPerPageList:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v0, v2, :cond_0

    .line 2247
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mItemNumPerPageList:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    add-int/2addr v1, v2

    .line 2248
    const/4 v2, 0x1

    sub-int v2, v1, v2

    if-lt v2, p1, :cond_1

    .line 2252
    :cond_0
    return v0

    .line 2246
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method private getStartItemIndex(I)I
    .locals 4
    .parameter "page"

    .prologue
    .line 2256
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mItemNumPerPageList:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_0

    if-nez p1, :cond_1

    :cond_0
    const/4 v2, 0x0

    .line 2262
    :goto_0
    return v2

    .line 2257
    :cond_1
    const/4 v1, 0x0

    .line 2259
    .local v1, index:I
    const/4 v0, 0x0

    .local v0, i:I
    :goto_1
    if-ge v0, p1, :cond_2

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mItemNumPerPageList:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    const/4 v3, 0x1

    sub-int/2addr v2, v3

    if-ge v0, v2, :cond_2

    .line 2260
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mItemNumPerPageList:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    add-int/2addr v1, v2

    .line 2259
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_2
    move v2, v1

    .line 2262
    goto :goto_0
.end method

.method private initBackCenterItemPanel()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 1669
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$WidgetBackCenterItemOnTouchListener;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/nemustech/regina/ElementReginaWidget$WidgetBackCenterItemOnTouchListener;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Lcom/nemustech/regina/ElementReginaWidget$1;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidgetBackCenterOnTouchListener:Lcom/nemustech/regina/ElementReginaWidget$WidgetBackCenterItemOnTouchListener;

    .line 1670
    new-instance v0, Lcom/nemustech/tiffany/world/TFPanel;

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter3DHeight:F

    invoke-direct {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1671
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1672
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 1673
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 1674
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFPanel;->lock()V

    .line 1675
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidgetBackCenterOnTouchListener:Lcom/nemustech/regina/ElementReginaWidget$WidgetBackCenterItemOnTouchListener;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setOnTouchListener(Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;)V

    .line 1676
    return-void
.end method

.method private initBackHighLightPanel()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    const/4 v4, 0x0

    .line 1692
    new-instance v0, Lcom/nemustech/tiffany/world/TFPanel;

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    const/16 v3, 0x14

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v2

    sub-float/2addr v1, v2

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    iget v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v2

    invoke-direct {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1694
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const-string v1, "Back Select Panel"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 1695
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v4}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 1696
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v4}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 1697
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1698
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v4, v5, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1699
    return-void
.end method

.method private initBackTitleItemPanel()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    const/4 v3, 0x0

    .line 1679
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$WidgetBackTitleItemOnTouchListener;

    invoke-direct {v0, p0, v3}, Lcom/nemustech/regina/ElementReginaWidget$WidgetBackTitleItemOnTouchListener;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Lcom/nemustech/regina/ElementReginaWidget$1;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidgetTitleBackOnTouchListener:Lcom/nemustech/regina/ElementReginaWidget$WidgetBackTitleItemOnTouchListener;

    .line 1680
    new-instance v0, Lcom/nemustech/tiffany/world/TFPanel;

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitle3DHeight:F

    invoke-direct {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1681
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const-string v1, "Back Title Item Panel"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 1682
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleItemPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1683
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v4}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 1684
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFPanel;->lock()V

    .line 1685
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidgetTitleBackOnTouchListener:Lcom/nemustech/regina/ElementReginaWidget$WidgetBackTitleItemOnTouchListener;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setOnTouchListener(Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;)V

    .line 1686
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->onUpdateTitle()Z

    move-result v0

    if-nez v0, :cond_0

    .line 1687
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v4, v3, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1689
    :cond_0
    return-void
.end method

.method private initBottomPanel()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 1895
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->drawFrontBottomBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1896
    .local v0, bottomBitmap:Landroid/graphics/Bitmap;
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v3

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v1

    .line 1898
    .local v1, bottomBitmap3DHeight:F
    new-instance v2, Lcom/nemustech/tiffany/world/TFPanel;

    iget v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    invoke-direct {v2, v3, v1}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    iput-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottomPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1899
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottomPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottomPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1900
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottomPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v3, 0x0

    invoke-virtual {v2, v3, v4, v4}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1901
    iput v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottom3DHeight:F

    .line 1902
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    iput v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottom2DHeight:I

    .line 1905
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasBack()Z

    move-result v2

    if-nez v2, :cond_0

    .line 1909
    :goto_0
    return-void

    .line 1907
    :cond_0
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->drawBackBottomBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1908
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottomPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v3, 0x1

    invoke-virtual {v2, v3, v4, v4}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    goto :goto_0
.end method

.method private initCenterPanel()V
    .locals 2

    .prologue
    .line 1817
    new-instance v0, Lcom/nemustech/tiffany/world/TFPanel;

    invoke-direct {v0}, Lcom/nemustech/tiffany/world/TFPanel;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1818
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1819
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    new-instance v1, Lcom/nemustech/regina/ElementReginaWidget$19;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/ElementReginaWidget$19;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setOnPanelMorphListener(Lcom/nemustech/tiffany/world/TFPanel$OnPanelMorphListener;)V

    .line 1828
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->updateCenterPanel()V

    .line 1829
    return-void
.end method

.method private initFrontCenterItemPanel()V
    .locals 3

    .prologue
    .line 1625
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$WidgetFrontCenterItemOnTouchListener;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/nemustech/regina/ElementReginaWidget$WidgetFrontCenterItemOnTouchListener;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Lcom/nemustech/regina/ElementReginaWidget$1;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidgetCenterOnTouchListener:Lcom/nemustech/regina/ElementReginaWidget$WidgetFrontCenterItemOnTouchListener;

    .line 1626
    new-instance v0, Lcom/nemustech/tiffany/world/TFPanel;

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter3DHeight:F

    invoke-direct {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1627
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const-string v1, "Front Center Item Panel"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 1628
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanelJit:Lcom/nemustech/regina/ElementReginaWidget$FrontCenterItemPanelJit;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1629
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 1630
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidgetCenterOnTouchListener:Lcom/nemustech/regina/ElementReginaWidget$WidgetFrontCenterItemOnTouchListener;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setOnTouchListener(Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;)V

    .line 1631
    return-void
.end method

.method private initFrontCenterNextHighLightPanel()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    .line 1654
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    const v2, 0x7f02008e

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1655
    .local v0, nextBitmap:Landroid/graphics/Bitmap;
    new-instance v1, Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v3

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v2

    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v4

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v3

    invoke-direct {v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    iput-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterNextHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1657
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterNextHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const-string v2, "Front Next Select Panel"

    iput-object v2, v1, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 1658
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterNextHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterNextHighLightPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1659
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterNextHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 1660
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterNextHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 1661
    return-void
.end method

.method private initFrontCenterPrevHighLightPanel()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    .line 1644
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    const v2, 0x7f020093

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1645
    .local v0, prevBitmap:Landroid/graphics/Bitmap;
    new-instance v1, Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v3

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v2

    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v4

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v3

    invoke-direct {v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    iput-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterPrevHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1647
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterPrevHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const-string v2, "Front Prev Select Panel"

    iput-object v2, v1, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 1648
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterPrevHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterPrevHighLightPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1649
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterPrevHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 1650
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterPrevHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 1651
    return-void
.end method

.method private initFrontHighLightPanel()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    const/4 v4, 0x0

    .line 1634
    new-instance v0, Lcom/nemustech/tiffany/world/TFPanel;

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    const/16 v3, 0x14

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v2

    sub-float/2addr v1, v2

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    iget v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v2

    invoke-direct {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1636
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const-string v1, "Front Center Select Panel"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 1637
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v4}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 1638
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v4}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 1639
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1640
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v4, v5, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1641
    return-void
.end method

.method private initFrontTitleItemPanel()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    const/4 v3, 0x0

    .line 1792
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$WidgetFrontTitleItemOnTouchListener;

    invoke-direct {v0, p0, v3}, Lcom/nemustech/regina/ElementReginaWidget$WidgetFrontTitleItemOnTouchListener;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Lcom/nemustech/regina/ElementReginaWidget$1;)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidgetFrontTitleOnTouchListener:Lcom/nemustech/regina/ElementReginaWidget$WidgetFrontTitleItemOnTouchListener;

    .line 1793
    new-instance v0, Lcom/nemustech/tiffany/world/TFPanel;

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitle3DHeight:F

    invoke-direct {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    iput-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1794
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const-string v1, "Front Title Item Panel"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 1795
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleItemPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1796
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v4}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 1797
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidgetFrontTitleOnTouchListener:Lcom/nemustech/regina/ElementReginaWidget$WidgetFrontTitleItemOnTouchListener;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setOnTouchListener(Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;)V

    .line 1798
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->onUpdateTitle()Z

    move-result v0

    if-nez v0, :cond_0

    .line 1799
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v4, v3, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1801
    :cond_0
    return-void
.end method

.method private initPageCountList(IILjava/util/List;)V
    .locals 3
    .parameter "itemCount"
    .parameter "rowCount"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(II",
            "Ljava/util/List",
            "<",
            "Ljava/lang/Integer;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 2223
    .local p3, list:Ljava/util/List;,"Ljava/util/List<Ljava/lang/Integer;>;"
    const-string v0, "ElementReginaWidget"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "[initPageCountList()] ############################## itemCount="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", rowCount="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2224
    invoke-interface {p3}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 2225
    invoke-interface {p3}, Ljava/util/List;->clear()V

    .line 2227
    :cond_0
    iput p1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTotalItemNum:I

    .line 2228
    invoke-direct {p0, p2}, Lcom/nemustech/regina/ElementReginaWidget;->isDrawPaging(I)Z

    move-result v0

    if-eqz v0, :cond_1

    add-int/lit8 p2, p2, -0x1

    .line 2230
    :cond_1
    if-gtz p2, :cond_3

    .line 2241
    :cond_2
    return-void

    .line 2232
    :cond_3
    :goto_0
    if-lez p1, :cond_2

    .line 2233
    if-le p1, p2, :cond_4

    .line 2234
    sub-int/2addr p1, p2

    .line 2235
    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-interface {p3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 2237
    :cond_4
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-interface {p3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 2238
    const/4 p1, 0x0

    goto :goto_0
.end method

.method private initPanelsToMainHolder()V
    .locals 0

    .prologue
    .line 1717
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->attachPanelsToMainHolder()V

    .line 1718
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->arrangePanelsInMainHolder()V

    .line 1719
    return-void
.end method

.method private initTitleBgPanel()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 1766
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    const v2, 0x7f02005e

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1769
    .local v0, titleBgBitmap:Landroid/graphics/Bitmap;
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget2DWidth:I

    .line 1770
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget2DWidth:I

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    .line 1773
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitle2DHeight:I

    .line 1774
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitle2DHeight:I

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitle3DHeight:F

    .line 1776
    new-instance v1, Lcom/nemustech/tiffany/world/TFPanel;

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitle3DHeight:F

    invoke-direct {v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    iput-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1777
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidgetFrontTitleOnTouchListener:Lcom/nemustech/regina/ElementReginaWidget$WidgetFrontTitleItemOnTouchListener;

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setOnTouchListener(Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;)V

    .line 1778
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1781
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v2, 0x0

    invoke-virtual {v1, v2, v4, v4}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1784
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasBack()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 1785
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v2, 0x1

    invoke-virtual {v1, v2, v4, v4}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1786
    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitle3DHeight:F

    iput v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitle3DHeight:F

    .line 1787
    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitle2DHeight:I

    iput v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitle2DHeight:I

    .line 1789
    :cond_0
    return-void
.end method

.method private isDrawPaging()Z
    .locals 1

    .prologue
    .line 1804
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/nemustech/regina/ElementReginaWidget;->isDrawPaging(I)Z

    move-result v0

    return v0
.end method

.method private isDrawPaging(I)Z
    .locals 3
    .parameter "rowNum"

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 1808
    iget-boolean v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mHasPaging:Z

    if-eqz v0, :cond_2

    .line 1809
    if-ne p1, v2, :cond_0

    move v0, v1

    .line 1811
    :goto_0
    return v0

    .line 1809
    :cond_0
    iget v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTotalItemNum:I

    if-le v0, p1, :cond_1

    move v0, v2

    goto :goto_0

    :cond_1
    move v0, v1

    goto :goto_0

    :cond_2
    move v0, v1

    .line 1811
    goto :goto_0
.end method

.method private isNextPage()Z
    .locals 2

    .prologue
    .line 2266
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getLastPageNum()I

    move-result v0

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCurrPage:I

    if-le v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private isPrevPage()Z
    .locals 1

    .prologue
    .line 2270
    iget v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCurrPage:I

    if-lez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private morphExtWidgetBack(I)V
    .locals 4
    .parameter "rowNum"

    .prologue
    const/4 v3, 0x0

    .line 1344
    iget v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterMorph2DHeight:I

    if-nez v0, :cond_0

    .line 1345
    iget v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    mul-int/2addr v0, p1

    iput v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterMorph2DHeight:I

    .line 1347
    :cond_0
    iget v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterMorph3DHeight:F

    cmpl-float v0, v0, v3

    if-nez v0, :cond_1

    .line 1348
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterMorph2DHeight:I

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterMorph3DHeight:F

    .line 1350
    :cond_1
    iget v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterMorph2DHeight:I

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter2DHeight:I

    if-gt v0, v1, :cond_3

    .line 1351
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/RGWorkspace;->requestUpdate()V

    .line 1352
    iget-boolean v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMorph:Z

    if-eqz v0, :cond_2

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMorph:Z

    .line 1393
    :cond_2
    :goto_0
    return-void

    .line 1356
    :cond_3
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMorph:Z

    .line 1358
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFHolder;->lock()V

    .line 1359
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    new-instance v1, Lcom/nemustech/regina/ElementReginaWidget$14;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/ElementReginaWidget$14;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 1381
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const-wide/16 v1, 0x96

    invoke-virtual {v0, v3, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->fade(FJ)V

    .line 1382
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    new-instance v1, Lcom/nemustech/regina/ElementReginaWidget$15;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/ElementReginaWidget$15;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    goto :goto_0
.end method

.method private morphShift(F)V
    .locals 4
    .parameter "heightDiff"

    .prologue
    const/high16 v3, 0x4000

    const/4 v2, 0x1

    .line 1505
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    neg-float v1, p1

    div-float/2addr v1, v3

    invoke-virtual {v0, v2, v1, v2}, Lcom/nemustech/tiffany/world/TFHolder;->locate(IFZ)V

    .line 1506
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

    div-float v1, p1, v3

    invoke-virtual {v0, v2, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->locate(IFZ)V

    .line 1507
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    div-float v1, p1, v3

    invoke-virtual {v0, v2, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->locate(IFZ)V

    .line 1508
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    div-float v1, p1, v3

    invoke-virtual {v0, v2, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->locate(IFZ)V

    .line 1511
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottomPanel:Lcom/nemustech/tiffany/world/TFPanel;

    neg-float v1, p1

    div-float/2addr v1, v3

    invoke-virtual {v0, v2, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->locate(IFZ)V

    .line 1512
    return-void
.end method

.method private updateBackCenterItemPanel()V
    .locals 3

    .prologue
    .line 1702
    iget-boolean v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMorph:Z

    if-eqz v0, :cond_0

    .line 1703
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterMorph3DHeight:F

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setSize(FF)V

    .line 1708
    :goto_0
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->refreshBackCenterItemPanel()V

    .line 1709
    return-void

    .line 1705
    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter3DHeight:F

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setSize(FF)V

    goto :goto_0
.end method

.method private updateCenterPanel()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 1832
    iget v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v1

    mul-int/2addr v0, v1

    iput v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter2DHeight:I

    .line 1833
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter2DHeight:I

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter3DHeight:F

    .line 1836
    iget-boolean v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMorph:Z

    if-eqz v0, :cond_1

    .line 1837
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterMorph3DHeight:F

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setSize(FF)V

    .line 1843
    :goto_0
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x0

    invoke-virtual {v0, v1, v3, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1844
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasBack()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1845
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x1

    invoke-virtual {v0, v1, v3, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1847
    :cond_0
    return-void

    .line 1839
    :cond_1
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter3DHeight:F

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setSize(FF)V

    goto :goto_0
.end method


# virtual methods
.method public addGadget(ILcom/nemustech/regina/ElementReginaWidget$Gadget;)V
    .locals 2
    .parameter "widgetFace"
    .parameter "gadget"

    .prologue
    .line 1333
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mGadgetList:Ljava/util/ArrayList;

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/LinkedList;

    .line 1334
    .local v0, mAddedGadgetList:Ljava/util/LinkedList;,"Ljava/util/LinkedList<Lcom/nemustech/regina/ElementReginaWidget$Gadget;>;"
    invoke-virtual {v0, p2}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 1335
    return-void
.end method

.method public create(I)V
    .locals 0
    .parameter "rowNum"

    .prologue
    .line 1614
    invoke-virtual {p0, p1}, Lcom/nemustech/regina/ElementReginaWidget;->setRowNum(I)V

    .line 1615
    invoke-virtual {p0, p1}, Lcom/nemustech/regina/ElementReginaWidget;->setPrefRowNum(I)V

    .line 1616
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->create()V

    .line 1617
    return-void
.end method

.method public create(Landroid/graphics/Rect;)V
    .locals 0
    .parameter "area"

    .prologue
    .line 1609
    iput-object p1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mInitAreaRect:Landroid/graphics/Rect;

    .line 1610
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->create()V

    .line 1611
    return-void
.end method

.method public createWidget(I)V
    .locals 5
    .parameter "totalItemCount"

    .prologue
    const/4 v4, 0x1

    .line 1556
    iput p1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTotalItemNum:I

    .line 1558
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->initTitleBgPanel()V

    .line 1559
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->initFrontTitleItemPanel()V

    .line 1560
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->initBottomPanel()V

    .line 1563
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mInitAreaRect:Landroid/graphics/Rect;

    if-eqz v1, :cond_0

    .line 1564
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mInitAreaRect:Landroid/graphics/Rect;

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ElementReginaWidget;->getAvailableRowCount(Landroid/graphics/Rect;)I

    move-result v0

    .line 1565
    .local v0, rowNum:I
    const-string v1, "ElementReginaWidget"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "[createWidget()] >>>>>>>>>>> getAvailableRowCount()="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", mTotalItemNum="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTotalItemNum:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v4}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1566
    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ElementReginaWidget;->setRowNum(I)V

    .line 1567
    const/4 v1, -0x1

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ElementReginaWidget;->setPrefRowNum(I)V

    .line 1568
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mInitAreaRect:Landroid/graphics/Rect;

    .line 1571
    .end local v0           #rowNum:I
    :cond_0
    iget-boolean v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mHasPaging:Z

    if-eqz v1, :cond_2

    .line 1572
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v1

    if-ge v1, v4, :cond_1

    .line 1573
    invoke-virtual {p0, v4}, Lcom/nemustech/regina/ElementReginaWidget;->setRowNum(I)V

    .line 1575
    :cond_1
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mItemNumPerPageList:Ljava/util/ArrayList;

    .line 1576
    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTotalItemNum:I

    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v2

    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mItemNumPerPageList:Ljava/util/ArrayList;

    invoke-direct {p0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget;->initPageCountList(IILjava/util/List;)V

    .line 1578
    :cond_2
    const-string v1, "ElementReginaWidget"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "[createWidget()] >>>>>>>>>>>>>>>>>>>> getRowNum()="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", getPrefRowNum()="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getPrefRowNum()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v4}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1580
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->initCenterPanel()V

    .line 1581
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->initFrontCenterItemPanel()V

    .line 1582
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->initFrontHighLightPanel()V

    .line 1583
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->initFrontCenterNextHighLightPanel()V

    .line 1584
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->initFrontCenterPrevHighLightPanel()V

    .line 1586
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasBack()Z

    move-result v1

    if-eqz v1, :cond_3

    .line 1587
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->initBackCenterItemPanel()V

    .line 1588
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->initBackTitleItemPanel()V

    .line 1589
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->initBackHighLightPanel()V

    .line 1592
    :cond_3
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->initPanelsToMainHolder()V

    .line 1594
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1595
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1596
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;->setVisibility(Z)V

    .line 1598
    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget2DWidth:I

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ElementReginaWidget;->setWidth2D(I)V

    .line 1599
    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitle2DHeight:I

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter2DHeight:I

    add-int/2addr v1, v2

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottom2DHeight:I

    add-int/2addr v1, v2

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ElementReginaWidget;->setHeight2D(I)V

    .line 1601
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mEventConsumerList:Ljava/util/LinkedList;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v1, v2}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 1602
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mEventConsumerList:Ljava/util/LinkedList;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v1, v2}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 1603
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasBack()Z

    move-result v1

    if-eqz v1, :cond_4

    .line 1604
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mEventConsumerList:Ljava/util/LinkedList;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v1, v2}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 1606
    :cond_4
    return-void
.end method

.method public createWidgetWithOneRow()V
    .locals 7

    .prologue
    const/4 v6, 0x0

    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 1515
    iput-boolean v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mHasPaging:Z

    .line 1516
    invoke-virtual {p0, v5}, Lcom/nemustech/regina/ElementReginaWidget;->setRowNum(I)V

    .line 1517
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    const/16 v2, 0xf

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->convertPixelByDensity(Landroid/content/Context;I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTouchAreaStartOffset:I

    .line 1519
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    const v2, 0x7f020061

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1520
    .local v0, bgBitmap:Landroid/graphics/Bitmap;
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget2DWidth:I

    .line 1521
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget2DWidth:I

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    .line 1522
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter2DHeight:I

    .line 1523
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter2DHeight:I

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter3DHeight:F

    .line 1525
    new-instance v1, Lcom/nemustech/tiffany/world/TFPanel;

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter3DHeight:F

    invoke-direct {v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    iput-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1526
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRowCenterPanelJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1527
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v4, v6, v6}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1529
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v1, v5}, Lcom/nemustech/tiffany/world/TFHolder;->setTerminalHolder(Z)V

    .line 1530
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1535
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->initFrontHighLightPanel()V

    .line 1536
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1538
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->initFrontCenterItemPanel()V

    .line 1539
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1541
    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget2DWidth:I

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ElementReginaWidget;->setWidth2D(I)V

    .line 1542
    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter2DHeight:I

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ElementReginaWidget;->setHeight2D(I)V

    .line 1544
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mEventConsumerList:Ljava/util/LinkedList;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v1, v2}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 1545
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mEventConsumerList:Ljava/util/LinkedList;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v1, v2}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 1546
    return-void
.end method

.method protected drawFrontCenterItemBitmap()Landroid/graphics/Bitmap;
    .locals 24

    .prologue
    .line 2089
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget2DWidth:I

    move/from16 v20, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter2DHeight:I

    move/from16 v21, v0

    sget-object v22, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static/range {v20 .. v22}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v9

    .line 2092
    .local v9, itemBitmap:Landroid/graphics/Bitmap;
    const/16 v20, 0x0

    move-object/from16 v0, p0

    move/from16 v1, v20

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget;->resetGadgets(I)V

    .line 2094
    const/16 v17, 0x0

    .line 2095
    .local v17, startItemIndex:I
    const/4 v6, 0x0

    .line 2097
    .local v6, dispItemNum:I
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mHasPaging:Z

    move/from16 v20, v0

    if-eqz v20, :cond_1

    .line 2098
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mCurrPage:I

    move/from16 v20, v0

    move-object/from16 v0, p0

    move/from16 v1, v20

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget;->getStartItemIndex(I)I

    move-result v17

    .line 2100
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v6

    .line 2101
    invoke-direct/range {p0 .. p0}, Lcom/nemustech/regina/ElementReginaWidget;->isDrawPaging()Z

    move-result v20

    if-eqz v20, :cond_0

    add-int/lit8 v6, v6, -0x1

    .line 2106
    :cond_0
    :goto_0
    new-instance v16, Landroid/graphics/Rect;

    invoke-direct/range {v16 .. v16}, Landroid/graphics/Rect;-><init>()V

    .line 2108
    .local v16, rtArea:Landroid/graphics/Rect;
    const/16 v20, 0x0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mTouchAreaStartOffset:I

    move/from16 v21, v0

    add-int/lit8 v21, v21, 0x0

    invoke-virtual {v9}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v22

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    move/from16 v23, v0

    move-object/from16 v0, v16

    move/from16 v1, v20

    move/from16 v2, v21

    move/from16 v3, v22

    move/from16 v4, v23

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;->set(IIII)V

    .line 2109
    move/from16 v8, v17

    .local v8, i:I
    :goto_1
    add-int v20, v17, v6

    move v0, v8

    move/from16 v1, v20

    if-ge v0, v1, :cond_2

    .line 2110
    move-object/from16 v0, p0

    move-object v1, v9

    move-object/from16 v2, v16

    move v3, v8

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget;->onDrawFrontItem(Landroid/graphics/Bitmap;Landroid/graphics/Rect;I)V

    .line 2111
    const/16 v20, 0x0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    move/from16 v21, v0

    move-object/from16 v0, v16

    move/from16 v1, v20

    move/from16 v2, v21

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Rect;->offset(II)V

    .line 2109
    add-int/lit8 v8, v8, 0x1

    goto :goto_1

    .line 2103
    .end local v8           #i:I
    .end local v16           #rtArea:Landroid/graphics/Rect;
    :cond_1
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v6

    goto :goto_0

    .line 2115
    .restart local v8       #i:I
    .restart local v16       #rtArea:Landroid/graphics/Rect;
    :cond_2
    invoke-direct/range {p0 .. p0}, Lcom/nemustech/regina/ElementReginaWidget;->isDrawPaging()Z

    move-result v20

    if-eqz v20, :cond_4

    .line 2117
    invoke-direct/range {p0 .. p0}, Lcom/nemustech/regina/ElementReginaWidget;->isPrevPage()Z

    move-result v20

    if-eqz v20, :cond_5

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v20, v0

    const v21, 0x7f020092

    invoke-static/range {v20 .. v21}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v20

    move-object/from16 v13, v20

    .line 2119
    .local v13, prevBitmap:Landroid/graphics/Bitmap;
    :goto_2
    invoke-direct/range {p0 .. p0}, Lcom/nemustech/regina/ElementReginaWidget;->isNextPage()Z

    move-result v20

    if-eqz v20, :cond_6

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v20, v0

    const v21, 0x7f02008d

    invoke-static/range {v20 .. v21}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v20

    move-object/from16 v10, v20

    .line 2123
    .local v10, nextBitmap:Landroid/graphics/Bitmap;
    :goto_3
    const/16 v20, 0x0

    invoke-virtual {v9}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v21

    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v22

    sub-int v21, v21, v22

    invoke-virtual {v9}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v22

    invoke-virtual {v9}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v23

    move-object/from16 v0, v16

    move/from16 v1, v20

    move/from16 v2, v21

    move/from16 v3, v22

    move/from16 v4, v23

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;->set(IIII)V

    .line 2126
    new-instance v5, Landroid/graphics/Canvas;

    invoke-direct {v5, v9}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 2127
    .local v5, canvas:Landroid/graphics/Canvas;
    invoke-virtual/range {v16 .. v16}, Landroid/graphics/Rect;->centerX()I

    move-result v20

    div-int/lit8 v20, v20, 0x2

    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v21

    div-int/lit8 v21, v21, 0x2

    sub-int v14, v20, v21

    .line 2128
    .local v14, prevBitmapLeft:I
    invoke-virtual/range {v16 .. v16}, Landroid/graphics/Rect;->centerY()I

    move-result v20

    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v21

    div-int/lit8 v21, v21, 0x2

    sub-int v15, v20, v21

    .line 2129
    .local v15, prevBitmapTop:I
    move v0, v14

    int-to-float v0, v0

    move/from16 v20, v0

    move v0, v15

    int-to-float v0, v0

    move/from16 v21, v0

    const/16 v22, 0x0

    move-object v0, v5

    move-object v1, v13

    move/from16 v2, v20

    move/from16 v3, v21

    move-object/from16 v4, v22

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 2131
    invoke-virtual/range {v16 .. v16}, Landroid/graphics/Rect;->centerX()I

    move-result v20

    invoke-virtual/range {v16 .. v16}, Landroid/graphics/Rect;->centerX()I

    move-result v21

    div-int/lit8 v21, v21, 0x2

    add-int v20, v20, v21

    invoke-virtual {v10}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v21

    div-int/lit8 v21, v21, 0x2

    sub-int v11, v20, v21

    .line 2132
    .local v11, nextBitmapLeft:I
    invoke-virtual/range {v16 .. v16}, Landroid/graphics/Rect;->centerY()I

    move-result v20

    invoke-virtual {v10}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v21

    div-int/lit8 v21, v21, 0x2

    sub-int v12, v20, v21

    .line 2133
    .local v12, nextBitmapTop:I
    move v0, v11

    int-to-float v0, v0

    move/from16 v20, v0

    move v0, v12

    int-to-float v0, v0

    move/from16 v21, v0

    const/16 v22, 0x0

    move-object v0, v5

    move-object v1, v10

    move/from16 v2, v20

    move/from16 v3, v21

    move-object/from16 v4, v22

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 2135
    const/16 v18, 0x0

    .line 2136
    .local v18, touchedAreaRt:Landroid/graphics/Rect;
    const/16 v19, 0x0

    .line 2139
    .local v19, touchedIconAreaRt:Landroid/graphics/Rect;
    invoke-direct/range {p0 .. p0}, Lcom/nemustech/regina/ElementReginaWidget;->isPrevPage()Z

    move-result v20

    if-eqz v20, :cond_3

    .line 2140
    new-instance v18, Landroid/graphics/Rect;

    .end local v18           #touchedAreaRt:Landroid/graphics/Rect;
    move-object/from16 v0, v16

    iget v0, v0, Landroid/graphics/Rect;->left:I

    move/from16 v20, v0

    move-object/from16 v0, v16

    iget v0, v0, Landroid/graphics/Rect;->top:I

    move/from16 v21, v0

    invoke-virtual/range {v16 .. v16}, Landroid/graphics/Rect;->centerX()I

    move-result v22

    move-object/from16 v0, v16

    iget v0, v0, Landroid/graphics/Rect;->bottom:I

    move/from16 v23, v0

    move-object/from16 v0, v18

    move/from16 v1, v20

    move/from16 v2, v21

    move/from16 v3, v22

    move/from16 v4, v23

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 2141
    .restart local v18       #touchedAreaRt:Landroid/graphics/Rect;
    new-instance v19, Landroid/graphics/Rect;

    .end local v19           #touchedIconAreaRt:Landroid/graphics/Rect;
    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v20

    add-int v20, v20, v14

    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v21

    add-int v21, v21, v15

    move-object/from16 v0, v19

    move v1, v14

    move v2, v15

    move/from16 v3, v20

    move/from16 v4, v21

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 2143
    .restart local v19       #touchedIconAreaRt:Landroid/graphics/Rect;
    new-instance v7, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-object v0, v7

    move-object/from16 v1, p0

    move-object/from16 v2, v18

    move-object/from16 v3, v19

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Landroid/graphics/Rect;Landroid/graphics/Rect;)V

    .line 2144
    .local v7, gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    const/16 v20, 0x3

    move-object v0, v7

    move/from16 v1, v20

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setGadgetType(I)V

    .line 2145
    const/16 v20, 0x0

    move-object/from16 v0, p0

    move/from16 v1, v20

    move-object v2, v7

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ElementReginaWidget;->addGadget(ILcom/nemustech/regina/ElementReginaWidget$Gadget;)V

    .line 2149
    .end local v7           #gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    :cond_3
    invoke-direct/range {p0 .. p0}, Lcom/nemustech/regina/ElementReginaWidget;->isNextPage()Z

    move-result v20

    if-eqz v20, :cond_4

    .line 2150
    new-instance v18, Landroid/graphics/Rect;

    .end local v18           #touchedAreaRt:Landroid/graphics/Rect;
    invoke-virtual/range {v16 .. v16}, Landroid/graphics/Rect;->centerX()I

    move-result v20

    move-object/from16 v0, v16

    iget v0, v0, Landroid/graphics/Rect;->top:I

    move/from16 v21, v0

    move-object/from16 v0, v16

    iget v0, v0, Landroid/graphics/Rect;->right:I

    move/from16 v22, v0

    move-object/from16 v0, v16

    iget v0, v0, Landroid/graphics/Rect;->bottom:I

    move/from16 v23, v0

    move-object/from16 v0, v18

    move/from16 v1, v20

    move/from16 v2, v21

    move/from16 v3, v22

    move/from16 v4, v23

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 2151
    .restart local v18       #touchedAreaRt:Landroid/graphics/Rect;
    new-instance v19, Landroid/graphics/Rect;

    .end local v19           #touchedIconAreaRt:Landroid/graphics/Rect;
    invoke-virtual {v10}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v20

    add-int v20, v20, v11

    invoke-virtual {v10}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v21

    add-int v21, v21, v12

    move-object/from16 v0, v19

    move v1, v11

    move v2, v12

    move/from16 v3, v20

    move/from16 v4, v21

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 2153
    .restart local v19       #touchedIconAreaRt:Landroid/graphics/Rect;
    new-instance v7, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-object v0, v7

    move-object/from16 v1, p0

    move-object/from16 v2, v18

    move-object/from16 v3, v19

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Landroid/graphics/Rect;Landroid/graphics/Rect;)V

    .line 2154
    .restart local v7       #gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    const/16 v20, 0x4

    move-object v0, v7

    move/from16 v1, v20

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setGadgetType(I)V

    .line 2155
    const/16 v20, 0x0

    move-object/from16 v0, p0

    move/from16 v1, v20

    move-object v2, v7

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ElementReginaWidget;->addGadget(ILcom/nemustech/regina/ElementReginaWidget$Gadget;)V

    .line 2158
    .end local v5           #canvas:Landroid/graphics/Canvas;
    .end local v7           #gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .end local v10           #nextBitmap:Landroid/graphics/Bitmap;
    .end local v11           #nextBitmapLeft:I
    .end local v12           #nextBitmapTop:I
    .end local v13           #prevBitmap:Landroid/graphics/Bitmap;
    .end local v14           #prevBitmapLeft:I
    .end local v15           #prevBitmapTop:I
    .end local v18           #touchedAreaRt:Landroid/graphics/Rect;
    .end local v19           #touchedIconAreaRt:Landroid/graphics/Rect;
    :cond_4
    return-object v9

    .line 2117
    :cond_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v20, v0

    const v21, 0x7f020090

    invoke-static/range {v20 .. v21}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v20

    move-object/from16 v13, v20

    goto/16 :goto_2

    .line 2119
    .restart local v13       #prevBitmap:Landroid/graphics/Bitmap;
    :cond_6
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v20, v0

    const v21, 0x7f02008b

    invoke-static/range {v20 .. v21}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v20

    move-object/from16 v10, v20

    goto/16 :goto_3
.end method

.method protected drawSeperateLine(Landroid/graphics/Bitmap;I)V
    .locals 4
    .parameter "bitmap"
    .parameter "y"

    .prologue
    .line 2218
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v2, 0x7f060044

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v0

    .line 2219
    .local v0, margin:I
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    const/4 v2, 0x0

    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v3

    invoke-static {v1, p1, v2, p2, v3}, Lcom/nemustech/regina/RUtils;->drawHLine(Landroid/content/Context;Landroid/graphics/Bitmap;III)V

    .line 2220
    return-void
.end method

.method protected drawTitle(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Ljava/lang/String;)V
    .locals 9
    .parameter "faceBitmap"
    .parameter "area"
    .parameter "title"

    .prologue
    const/high16 v8, 0x3f80

    .line 2071
    if-eqz p3, :cond_0

    invoke-virtual {p3}, Ljava/lang/String;->length()I

    move-result v6

    if-lez v6, :cond_0

    .line 2072
    new-instance v2, Landroid/graphics/Canvas;

    invoke-direct {v2, p1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 2073
    .local v2, canvas:Landroid/graphics/Canvas;
    new-instance v5, Landroid/graphics/Paint;

    invoke-direct {v5}, Landroid/graphics/Paint;-><init>()V

    .line 2074
    .local v5, paint:Landroid/graphics/Paint;
    new-instance v1, Landroid/graphics/Rect;

    invoke-direct {v1}, Landroid/graphics/Rect;-><init>()V

    .line 2075
    .local v1, bounds:Landroid/graphics/Rect;
    const/4 v6, 0x1

    invoke-virtual {v5, v6}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 2076
    sget-object v6, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    invoke-virtual {v5, v6}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 2077
    iget-object v6, p0, Lcom/nemustech/regina/ElementReginaWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v7, 0x7f060042

    invoke-virtual {v6, v7}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v6

    int-to-float v6, v6

    invoke-virtual {v5, v6}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 2078
    iget-object v6, p0, Lcom/nemustech/regina/ElementReginaWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v7, 0x7f050006

    invoke-virtual {v6, v7}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v6

    invoke-virtual {v5, v6}, Landroid/graphics/Paint;->setColor(I)V

    .line 2079
    const/high16 v6, 0x3f00

    const/high16 v7, -0x100

    invoke-virtual {v5, v6, v8, v8, v7}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    .line 2080
    invoke-virtual {p2}, Landroid/graphics/Rect;->width()I

    move-result v6

    invoke-static {p3, v5, v6}, Lcom/nemustech/regina/RUtils;->getEllipsisString(Ljava/lang/String;Landroid/graphics/Paint;I)Ljava/lang/String;

    move-result-object v3

    .line 2081
    .local v3, ellipsisString:Ljava/lang/String;
    const/4 v6, 0x0

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v7

    invoke-virtual {v5, v3, v6, v7, v1}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    .line 2082
    invoke-virtual {p2}, Landroid/graphics/Rect;->height()I

    move-result v6

    invoke-virtual {v1}, Landroid/graphics/Rect;->height()I

    move-result v7

    sub-int/2addr v6, v7

    div-int/lit8 v6, v6, 0x2

    int-to-float v4, v6

    .line 2083
    .local v4, offset:F
    invoke-virtual {v5}, Landroid/graphics/Paint;->ascent()F

    move-result v6

    neg-float v6, v6

    float-to-double v6, v6

    invoke-static {v6, v7}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v6

    double-to-int v0, v6

    .line 2084
    .local v0, ascent:I
    iget v6, p2, Landroid/graphics/Rect;->left:I

    int-to-float v6, v6

    iget v7, p2, Landroid/graphics/Rect;->top:I

    int-to-float v7, v7

    add-float/2addr v7, v4

    int-to-float v8, v0

    add-float/2addr v7, v8

    invoke-virtual {v2, v3, v6, v7, v5}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 2086
    .end local v0           #ascent:I
    .end local v1           #bounds:Landroid/graphics/Rect;
    .end local v2           #canvas:Landroid/graphics/Canvas;
    .end local v3           #ellipsisString:Ljava/lang/String;
    .end local v4           #offset:F
    .end local v5           #paint:Landroid/graphics/Paint;
    :cond_0
    return-void
.end method

.method protected dumpRectArea(Ljava/lang/String;Landroid/graphics/Rect;)V
    .locals 3
    .parameter "tag"
    .parameter "area"

    .prologue
    const/4 v2, 0x1

    .line 1549
    const-string v0, "[ElementReginaWidget.dumpRectArea()]---------------------------"

    invoke-static {p1, v0, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1550
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "[ElementReginaWidget.dumpRectArea()] area.width()="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p2}, Landroid/graphics/Rect;->width()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", area.height()="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p2}, Landroid/graphics/Rect;->height()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1551
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "[ElementReginaWidget.dumpRectArea()] area.left="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v1, p2, Landroid/graphics/Rect;->left:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", area.top="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v1, p2, Landroid/graphics/Rect;->top:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1552
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "[ElementReginaWidget.dumpRectArea()] area.right="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v1, p2, Landroid/graphics/Rect;->right:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", area.bottom="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v1, p2, Landroid/graphics/Rect;->bottom:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1553
    return-void
.end method

.method public forceHideHighLightPanel()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 1319
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterNextHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterNextHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFPanel;->isVisible()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1320
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterNextHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 1322
    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterPrevHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterPrevHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFPanel;->isVisible()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 1323
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterPrevHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 1325
    :cond_1
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFPanel;->isVisible()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 1326
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 1328
    :cond_2
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFPanel;->isVisible()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 1329
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 1330
    :cond_3
    return-void
.end method

.method protected getAvailableMorphRowCount(I)I
    .locals 1
    .parameter "areaHeight"

    .prologue
    .line 2067
    iget v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    div-int v0, p1, v0

    return v0
.end method

.method public getAvailableRowCount(I)I
    .locals 3
    .parameter "height"

    .prologue
    .line 2063
    const/4 v0, 0x1

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitle2DHeight:I

    sub-int v1, p1, v1

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottom2DHeight:I

    sub-int/2addr v1, v2

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    div-int/2addr v1, v2

    invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I

    move-result v0

    return v0
.end method

.method protected getAvailableRowCount(Landroid/graphics/Rect;)I
    .locals 1
    .parameter "area"

    .prologue
    .line 2059
    invoke-virtual {p1}, Landroid/graphics/Rect;->height()I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ElementReginaWidget;->getAvailableRowCount(I)I

    move-result v0

    return v0
.end method

.method protected getBackCenterItemPanel()Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1

    .prologue
    .line 1271
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method protected getBottomPanel()Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1

    .prologue
    .line 1263
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottomPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method protected getCenterPanel()Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1

    .prologue
    .line 1259
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method protected getFrontCenterItemPanel()Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1

    .prologue
    .line 1267
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method public getInternalObject()Lcom/nemustech/tiffany/world/TFObject;
    .locals 1

    .prologue
    .line 1037
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    return-object v0
.end method

.method public getPrefRowNum()I
    .locals 1

    .prologue
    .line 1243
    iget v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mPrefRowNum:I

    return v0
.end method

.method protected getSettingsNum()I
    .locals 1

    .prologue
    .line 1209
    iget v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mSettingsNum:I

    return v0
.end method

.method public getSnapShot()Landroid/graphics/Bitmap;
    .locals 7

    .prologue
    const/4 v6, 0x0

    .line 1042
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->forceHideHighLightPanel()V

    .line 1043
    iget v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidth:I

    iget v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mHeight:I

    sget-object v5, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v3, v4, v5}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1044
    .local v0, bmp:Landroid/graphics/Bitmap;
    new-instance v1, Landroid/graphics/Canvas;

    invoke-direct {v1, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 1045
    .local v1, canvas:Landroid/graphics/Canvas;
    new-instance v2, Lcom/nemustech/tiffany/world/MatrixStack;

    invoke-direct {v2}, Lcom/nemustech/tiffany/world/MatrixStack;-><init>()V

    .line 1046
    .local v2, matrixStack:Lcom/nemustech/tiffany/world/MatrixStack;
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasBack()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 1047
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v3, v6}, Lcom/nemustech/tiffany/world/TFHolder;->getAngle(I)F

    move-result v3

    const/high16 v4, 0x4334

    cmpg-float v3, v3, v4

    if-gez v3, :cond_0

    .line 1048
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {p0, v6, v3, v1, v2}, Lcom/nemustech/regina/ElementReginaWidget;->getSnapShot(ILcom/nemustech/tiffany/world/TFHolder;Landroid/graphics/Canvas;Lcom/nemustech/tiffany/world/MatrixStack;)V

    .line 1056
    :goto_0
    return-object v0

    .line 1050
    :cond_0
    const/4 v3, 0x1

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {p0, v3, v4, v1, v2}, Lcom/nemustech/regina/ElementReginaWidget;->getSnapShot(ILcom/nemustech/tiffany/world/TFHolder;Landroid/graphics/Canvas;Lcom/nemustech/tiffany/world/MatrixStack;)V

    goto :goto_0

    .line 1053
    :cond_1
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {p0, v6, v3, v1, v2}, Lcom/nemustech/regina/ElementReginaWidget;->getSnapShot(ILcom/nemustech/tiffany/world/TFHolder;Landroid/graphics/Canvas;Lcom/nemustech/tiffany/world/MatrixStack;)V

    goto :goto_0
.end method

.method public getSnapShot(I)Landroid/graphics/Bitmap;
    .locals 6
    .parameter "faceIndex"

    .prologue
    .line 1061
    iget v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidth:I

    iget v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mHeight:I

    sget-object v5, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v3, v4, v5}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1062
    .local v0, bmp:Landroid/graphics/Bitmap;
    new-instance v1, Landroid/graphics/Canvas;

    invoke-direct {v1, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 1063
    .local v1, canvas:Landroid/graphics/Canvas;
    new-instance v2, Lcom/nemustech/tiffany/world/MatrixStack;

    invoke-direct {v2}, Lcom/nemustech/tiffany/world/MatrixStack;-><init>()V

    .line 1064
    .local v2, matrixStack:Lcom/nemustech/tiffany/world/MatrixStack;
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {p0, p1, v3, v1, v2}, Lcom/nemustech/regina/ElementReginaWidget;->getSnapShot(ILcom/nemustech/tiffany/world/TFHolder;Landroid/graphics/Canvas;Lcom/nemustech/tiffany/world/MatrixStack;)V

    .line 1066
    return-object v0
.end method

.method protected getSnapShot(ILcom/nemustech/tiffany/world/TFHolder;Landroid/graphics/Canvas;Lcom/nemustech/tiffany/world/MatrixStack;)V
    .locals 25
    .parameter "faceIndex"
    .parameter "holder"
    .parameter "canvas"
    .parameter "matrixStack"

    .prologue
    .line 1082
    invoke-virtual/range {p2 .. p2}, Lcom/nemustech/tiffany/world/TFHolder;->getSlotCount()I

    move-result v10

    .line 1083
    .local v10, itemCount:I
    const/4 v9, 0x0

    .local v9, i:I
    :goto_0
    if-ge v9, v10, :cond_9

    .line 1084
    move-object/from16 v0, p2

    move v1, v9

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v17

    .line 1086
    .local v17, o:Lcom/nemustech/tiffany/world/TFObject;
    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/tiffany/world/TFObject;->isVisible()Z

    move-result v22

    if-eqz v22, :cond_2

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/tiffany/world/TFObject;->getOpacity()F

    move-result v22

    const/16 v23, 0x0

    cmpl-float v22, v22, v23

    if-eqz v22, :cond_2

    .line 1087
    invoke-virtual/range {p4 .. p4}, Lcom/nemustech/tiffany/world/MatrixStack;->glPushMatrix()V

    .line 1088
    if-nez p1, :cond_3

    const/16 v22, 0x1

    :goto_1
    move/from16 v0, v22

    int-to-float v0, v0

    move/from16 v22, v0

    const/16 v23, 0x0

    move-object/from16 v0, v17

    move/from16 v1, v23

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFObject;->getLocation(I)F

    move-result v23

    mul-float v22, v22, v23

    const/16 v23, 0x1

    move-object/from16 v0, v17

    move/from16 v1, v23

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFObject;->getLocation(I)F

    move-result v23

    const/16 v24, 0x2

    move-object/from16 v0, v17

    move/from16 v1, v24

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFObject;->getLocation(I)F

    move-result v24

    move-object/from16 v0, p4

    move/from16 v1, v22

    move/from16 v2, v23

    move/from16 v3, v24

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/MatrixStack;->glTranslatef(FFF)V

    .line 1089
    move-object/from16 v0, v17

    instance-of v0, v0, Lcom/nemustech/tiffany/world/TFHolder;

    move/from16 v22, v0

    if-eqz v22, :cond_5

    .line 1090
    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/tiffany/world/TFObject;->isVisible()Z

    move-result v22

    const/16 v23, 0x1

    move/from16 v0, v22

    move/from16 v1, v23

    if-ne v0, v1, :cond_1

    .line 1091
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    move-object/from16 v22, v0

    move-object/from16 v0, v17

    move-object/from16 v1, v22

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v22

    if-eqz v22, :cond_0

    .line 1092
    if-nez p1, :cond_4

    const/16 v22, 0x1

    move/from16 p1, v22

    .line 1094
    :cond_0
    :goto_2
    check-cast v17, Lcom/nemustech/tiffany/world/TFHolder;

    .end local v17           #o:Lcom/nemustech/tiffany/world/TFObject;
    move-object/from16 v0, p0

    move/from16 v1, p1

    move-object/from16 v2, v17

    move-object/from16 v3, p3

    move-object/from16 v4, p4

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/nemustech/regina/ElementReginaWidget;->getSnapShot(ILcom/nemustech/tiffany/world/TFHolder;Landroid/graphics/Canvas;Lcom/nemustech/tiffany/world/MatrixStack;)V

    .line 1130
    :cond_1
    :goto_3
    invoke-virtual/range {p4 .. p4}, Lcom/nemustech/tiffany/world/MatrixStack;->glPopMatrix()V

    .line 1083
    :cond_2
    add-int/lit8 v9, v9, 0x1

    goto/16 :goto_0

    .line 1088
    .restart local v17       #o:Lcom/nemustech/tiffany/world/TFObject;
    :cond_3
    const/16 v22, -0x1

    goto :goto_1

    .line 1092
    :cond_4
    const/16 v22, 0x0

    move/from16 p1, v22

    goto :goto_2

    .line 1097
    :cond_5
    move-object/from16 v0, v17

    check-cast v0, Lcom/nemustech/tiffany/world/TFModel;

    move-object v12, v0

    .line 1099
    .local v12, m:Lcom/nemustech/tiffany/world/TFModel;
    const/16 v18, 0x0

    .line 1100
    .local v18, snapshotFace:I
    if-gez p1, :cond_8

    .line 1101
    invoke-virtual {v12}, Lcom/nemustech/tiffany/world/TFModel;->getTouchedFace()I

    move-result v22

    if-ltz v22, :cond_7

    invoke-virtual {v12}, Lcom/nemustech/tiffany/world/TFModel;->getTouchedFace()I

    move-result v22

    move/from16 v18, v22

    .line 1106
    :goto_4
    const/16 v22, 0x10

    move/from16 v0, v22

    new-array v0, v0, [F

    move-object v13, v0

    .line 1107
    .local v13, matrix:[F
    const/16 v22, 0x3

    move/from16 v0, v22

    new-array v0, v0, [F

    move-object v11, v0

    .line 1108
    .local v11, location:[F
    const/16 v22, 0x0

    move-object/from16 v0, p4

    move-object v1, v13

    move/from16 v2, v22

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/tiffany/world/MatrixStack;->getMatrix([FI)V

    .line 1109
    const/16 v22, 0xc

    const/16 v23, 0x0

    const/16 v24, 0x3

    move-object v0, v13

    move/from16 v1, v22

    move-object v2, v11

    move/from16 v3, v23

    move/from16 v4, v24

    invoke-static {v0, v1, v2, v3, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 1111
    invoke-virtual {v12}, Lcom/nemustech/tiffany/world/TFModel;->getWidth()F

    move-result v22

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    move-object/from16 v23, v0

    invoke-static/range {v23 .. v23}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v23

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    mul-float v22, v22, v23

    move/from16 v0, v22

    float-to-int v0, v0

    move/from16 v16, v0

    .line 1112
    .local v16, modelWidthPixel:I
    invoke-virtual {v12}, Lcom/nemustech/tiffany/world/TFModel;->getHeight()F

    move-result v22

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    move-object/from16 v23, v0

    invoke-static/range {v23 .. v23}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v23

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    mul-float v22, v22, v23

    move/from16 v0, v22

    float-to-int v0, v0

    move v15, v0

    .line 1114
    .local v15, modelHeightPixel:I
    move-object v0, v12

    move/from16 v1, v18

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFModel;->getFaceImage(I)Landroid/graphics/Bitmap;

    move-result-object v8

    .line 1115
    .local v8, faceBitmap:Landroid/graphics/Bitmap;
    const/4 v14, 0x0

    .line 1116
    .local v14, modelBitmap:Landroid/graphics/Bitmap;
    if-eqz v8, :cond_6

    .line 1117
    invoke-static {v8}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    move-result-object v14

    .line 1120
    :cond_6
    if-eqz v14, :cond_1

    .line 1121
    invoke-virtual {v14}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v6

    .line 1122
    .local v6, bitmapWidth:I
    invoke-virtual {v14}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v5

    .line 1123
    .local v5, bitmapHeight:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    move-object/from16 v22, v0

    invoke-static/range {v22 .. v22}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v22

    move/from16 v0, v22

    int-to-float v0, v0

    move/from16 v22, v0

    const/16 v23, 0x0

    aget v23, v11, v23

    mul-float v22, v22, v23

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mWidth:I

    move/from16 v23, v0

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    const/high16 v24, 0x4000

    div-float v23, v23, v24

    add-float v22, v22, v23

    move/from16 v0, v16

    int-to-float v0, v0

    move/from16 v23, v0

    const/high16 v24, 0x4000

    div-float v23, v23, v24

    sub-float v22, v22, v23

    move/from16 v0, v22

    float-to-int v0, v0

    move/from16 v20, v0

    .line 1124
    .local v20, x2d:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    move-object/from16 v22, v0

    invoke-static/range {v22 .. v22}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v22

    move/from16 v0, v22

    neg-int v0, v0

    move/from16 v22, v0

    move/from16 v0, v22

    int-to-float v0, v0

    move/from16 v22, v0

    const/16 v23, 0x1

    aget v23, v11, v23

    mul-float v22, v22, v23

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mHeight:I

    move/from16 v23, v0

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    const/high16 v24, 0x4000

    div-float v23, v23, v24

    add-float v22, v22, v23

    move v0, v15

    int-to-float v0, v0

    move/from16 v23, v0

    const/high16 v24, 0x4000

    div-float v23, v23, v24

    sub-float v22, v22, v23

    move/from16 v0, v22

    float-to-int v0, v0

    move/from16 v21, v0

    .line 1125
    .local v21, y2d:I
    new-instance v19, Landroid/graphics/Rect;

    const/16 v22, 0x0

    const/16 v23, 0x0

    move-object/from16 v0, v19

    move/from16 v1, v22

    move/from16 v2, v23

    move v3, v6

    move v4, v5

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1126
    .local v19, src:Landroid/graphics/Rect;
    new-instance v7, Landroid/graphics/Rect;

    add-int v22, v20, v16

    add-int v23, v21, v15

    move-object v0, v7

    move/from16 v1, v20

    move/from16 v2, v21

    move/from16 v3, v22

    move/from16 v4, v23

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1127
    .local v7, dest:Landroid/graphics/Rect;
    const/16 v22, 0x0

    move-object/from16 v0, p3

    move-object v1, v14

    move-object/from16 v2, v19

    move-object v3, v7

    move-object/from16 v4, v22

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    goto/16 :goto_3

    .line 1101
    .end local v5           #bitmapHeight:I
    .end local v6           #bitmapWidth:I
    .end local v7           #dest:Landroid/graphics/Rect;
    .end local v8           #faceBitmap:Landroid/graphics/Bitmap;
    .end local v11           #location:[F
    .end local v13           #matrix:[F
    .end local v14           #modelBitmap:Landroid/graphics/Bitmap;
    .end local v15           #modelHeightPixel:I
    .end local v16           #modelWidthPixel:I
    .end local v19           #src:Landroid/graphics/Rect;
    .end local v20           #x2d:I
    .end local v21           #y2d:I
    :cond_7
    const/16 v22, 0x0

    move/from16 v18, v22

    goto/16 :goto_4

    .line 1103
    :cond_8
    move/from16 v18, p1

    goto/16 :goto_4

    .line 1133
    .end local v12           #m:Lcom/nemustech/tiffany/world/TFModel;
    .end local v17           #o:Lcom/nemustech/tiffany/world/TFObject;
    .end local v18           #snapshotFace:I
    :cond_9
    return-void
.end method

.method public getSnapShotOpposite()Landroid/graphics/Bitmap;
    .locals 6

    .prologue
    .line 1071
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasBack()Z

    move-result v3

    if-nez v3, :cond_0

    const/4 v3, 0x0

    .line 1078
    :goto_0
    return-object v3

    .line 1073
    :cond_0
    iget v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidth:I

    iget v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mHeight:I

    sget-object v5, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v3, v4, v5}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1074
    .local v0, bmp:Landroid/graphics/Bitmap;
    new-instance v1, Landroid/graphics/Canvas;

    invoke-direct {v1, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 1075
    .local v1, canvas:Landroid/graphics/Canvas;
    new-instance v2, Lcom/nemustech/tiffany/world/MatrixStack;

    invoke-direct {v2}, Lcom/nemustech/tiffany/world/MatrixStack;-><init>()V

    .line 1076
    .local v2, matrixStack:Lcom/nemustech/tiffany/world/MatrixStack;
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {p0, v3, v1, v2}, Lcom/nemustech/regina/ElementReginaWidget;->getSnapShotOpposite(Lcom/nemustech/tiffany/world/TFHolder;Landroid/graphics/Canvas;Lcom/nemustech/tiffany/world/MatrixStack;)V

    move-object v3, v0

    .line 1078
    goto :goto_0
.end method

.method protected getSnapShotOpposite(Lcom/nemustech/tiffany/world/TFHolder;Landroid/graphics/Canvas;Lcom/nemustech/tiffany/world/MatrixStack;)V
    .locals 25
    .parameter "holder"
    .parameter "canvas"
    .parameter "matrixStack"

    .prologue
    .line 1136
    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/tiffany/world/TFHolder;->getSlotCount()I

    move-result v9

    .line 1137
    .local v9, itemCount:I
    const/4 v8, 0x0

    .local v8, i:I
    :goto_0
    if-ge v8, v9, :cond_4

    .line 1138
    move-object/from16 v0, p1

    move v1, v8

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v16

    .line 1139
    .local v16, o:Lcom/nemustech/tiffany/world/TFObject;
    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/tiffany/world/TFObject;->isVisible()Z

    move-result v22

    if-eqz v22, :cond_1

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/tiffany/world/TFObject;->getOpacity()F

    move-result v22

    const/16 v23, 0x0

    cmpl-float v22, v22, v23

    if-eqz v22, :cond_1

    .line 1140
    invoke-virtual/range {p3 .. p3}, Lcom/nemustech/tiffany/world/MatrixStack;->glPushMatrix()V

    .line 1141
    const/16 v22, 0x0

    move-object/from16 v0, v16

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFObject;->getLocation(I)F

    move-result v22

    const/16 v23, 0x1

    move-object/from16 v0, v16

    move/from16 v1, v23

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFObject;->getLocation(I)F

    move-result v23

    const/16 v24, 0x2

    move-object/from16 v0, v16

    move/from16 v1, v24

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFObject;->getLocation(I)F

    move-result v24

    move-object/from16 v0, p3

    move/from16 v1, v22

    move/from16 v2, v23

    move/from16 v3, v24

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/MatrixStack;->glTranslatef(FFF)V

    .line 1142
    move-object/from16 v0, v16

    instance-of v0, v0, Lcom/nemustech/tiffany/world/TFHolder;

    move/from16 v22, v0

    if-eqz v22, :cond_2

    .line 1143
    check-cast v16, Lcom/nemustech/tiffany/world/TFHolder;

    .end local v16           #o:Lcom/nemustech/tiffany/world/TFObject;
    move-object/from16 v0, p0

    move-object/from16 v1, v16

    move-object/from16 v2, p2

    move-object/from16 v3, p3

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget;->getSnapShotOpposite(Lcom/nemustech/tiffany/world/TFHolder;Landroid/graphics/Canvas;Lcom/nemustech/tiffany/world/MatrixStack;)V

    .line 1172
    :cond_0
    :goto_1
    invoke-virtual/range {p3 .. p3}, Lcom/nemustech/tiffany/world/MatrixStack;->glPopMatrix()V

    .line 1137
    :cond_1
    add-int/lit8 v8, v8, 0x1

    goto :goto_0

    .line 1145
    .restart local v16       #o:Lcom/nemustech/tiffany/world/TFObject;
    :cond_2
    move-object/from16 v0, v16

    check-cast v0, Lcom/nemustech/tiffany/world/TFModel;

    move-object v11, v0

    .line 1146
    .local v11, m:Lcom/nemustech/tiffany/world/TFModel;
    const/16 v22, 0x10

    move/from16 v0, v22

    new-array v0, v0, [F

    move-object v12, v0

    .line 1147
    .local v12, matrix:[F
    const/16 v22, 0x3

    move/from16 v0, v22

    new-array v0, v0, [F

    move-object v10, v0

    .line 1148
    .local v10, location:[F
    const/16 v22, 0x0

    move-object/from16 v0, p3

    move-object v1, v12

    move/from16 v2, v22

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/tiffany/world/MatrixStack;->getMatrix([FI)V

    .line 1149
    const/16 v22, 0xc

    const/16 v23, 0x0

    const/16 v24, 0x3

    move-object v0, v12

    move/from16 v1, v22

    move-object v2, v10

    move/from16 v3, v23

    move/from16 v4, v24

    invoke-static {v0, v1, v2, v3, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 1151
    invoke-virtual {v11}, Lcom/nemustech/tiffany/world/TFModel;->getWidth()F

    move-result v22

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    move-object/from16 v23, v0

    invoke-static/range {v23 .. v23}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v23

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    mul-float v22, v22, v23

    move/from16 v0, v22

    float-to-int v0, v0

    move v15, v0

    .line 1152
    .local v15, modelWidthPixel:I
    invoke-virtual {v11}, Lcom/nemustech/tiffany/world/TFModel;->getHeight()F

    move-result v22

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    move-object/from16 v23, v0

    invoke-static/range {v23 .. v23}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v23

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    mul-float v22, v22, v23

    move/from16 v0, v22

    float-to-int v0, v0

    move v14, v0

    .line 1154
    .local v14, modelHeightPixel:I
    invoke-virtual {v11}, Lcom/nemustech/tiffany/world/TFModel;->getTouchedFace()I

    move-result v22

    if-nez v22, :cond_3

    const/16 v22, 0x1

    move/from16 v18, v22

    .line 1158
    .local v18, untouchedFace:I
    :goto_2
    move-object v0, v11

    move/from16 v1, v18

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFModel;->getFaceImage(I)Landroid/graphics/Bitmap;

    move-result-object v19

    .line 1159
    .local v19, untouchedFaceBmp:Landroid/graphics/Bitmap;
    if-eqz v19, :cond_0

    .line 1160
    invoke-static/range {v19 .. v19}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    move-result-object v13

    .line 1161
    .local v13, modelBitmap:Landroid/graphics/Bitmap;
    if-eqz v13, :cond_0

    .line 1162
    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v6

    .line 1163
    .local v6, bitmapWidth:I
    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v5

    .line 1164
    .local v5, bitmapHeight:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    move-object/from16 v22, v0

    invoke-static/range {v22 .. v22}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v22

    move/from16 v0, v22

    int-to-float v0, v0

    move/from16 v22, v0

    const/16 v23, 0x0

    aget v23, v10, v23

    mul-float v22, v22, v23

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mWidth:I

    move/from16 v23, v0

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    const/high16 v24, 0x4000

    div-float v23, v23, v24

    add-float v22, v22, v23

    move v0, v15

    int-to-float v0, v0

    move/from16 v23, v0

    const/high16 v24, 0x4000

    div-float v23, v23, v24

    sub-float v22, v22, v23

    move/from16 v0, v22

    float-to-int v0, v0

    move/from16 v20, v0

    .line 1165
    .local v20, x2d:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    move-object/from16 v22, v0

    invoke-static/range {v22 .. v22}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v22

    move/from16 v0, v22

    neg-int v0, v0

    move/from16 v22, v0

    move/from16 v0, v22

    int-to-float v0, v0

    move/from16 v22, v0

    const/16 v23, 0x1

    aget v23, v10, v23

    mul-float v22, v22, v23

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mHeight:I

    move/from16 v23, v0

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    const/high16 v24, 0x4000

    div-float v23, v23, v24

    add-float v22, v22, v23

    move v0, v14

    int-to-float v0, v0

    move/from16 v23, v0

    const/high16 v24, 0x4000

    div-float v23, v23, v24

    sub-float v22, v22, v23

    move/from16 v0, v22

    float-to-int v0, v0

    move/from16 v21, v0

    .line 1166
    .local v21, y2d:I
    new-instance v17, Landroid/graphics/Rect;

    const/16 v22, 0x0

    const/16 v23, 0x0

    move-object/from16 v0, v17

    move/from16 v1, v22

    move/from16 v2, v23

    move v3, v6

    move v4, v5

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1167
    .local v17, src:Landroid/graphics/Rect;
    new-instance v7, Landroid/graphics/Rect;

    add-int v22, v20, v15

    add-int v23, v21, v14

    move-object v0, v7

    move/from16 v1, v20

    move/from16 v2, v21

    move/from16 v3, v22

    move/from16 v4, v23

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1168
    .local v7, dest:Landroid/graphics/Rect;
    const/16 v22, 0x0

    move-object/from16 v0, p2

    move-object v1, v13

    move-object/from16 v2, v17

    move-object v3, v7

    move-object/from16 v4, v22

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    goto/16 :goto_1

    .line 1154
    .end local v5           #bitmapHeight:I
    .end local v6           #bitmapWidth:I
    .end local v7           #dest:Landroid/graphics/Rect;
    .end local v13           #modelBitmap:Landroid/graphics/Bitmap;
    .end local v17           #src:Landroid/graphics/Rect;
    .end local v18           #untouchedFace:I
    .end local v19           #untouchedFaceBmp:Landroid/graphics/Bitmap;
    .end local v20           #x2d:I
    .end local v21           #y2d:I
    :cond_3
    const/16 v22, 0x0

    move/from16 v18, v22

    goto/16 :goto_2

    .line 1175
    .end local v10           #location:[F
    .end local v11           #m:Lcom/nemustech/tiffany/world/TFModel;
    .end local v12           #matrix:[F
    .end local v14           #modelHeightPixel:I
    .end local v15           #modelWidthPixel:I
    .end local v16           #o:Lcom/nemustech/tiffany/world/TFObject;
    :cond_4
    return-void
.end method

.method protected getTitlePanel()Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1

    .prologue
    .line 1255
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitlePanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method protected hasBack()Z
    .locals 1

    .prologue
    .line 1197
    const/4 v0, 0x1

    return v0
.end method

.method protected hasHorLine()Z
    .locals 1

    .prologue
    .line 1247
    const/4 v0, 0x1

    return v0
.end method

.method protected hasMorphing()Z
    .locals 1

    .prologue
    .line 1193
    const/4 v0, 0x1

    return v0
.end method

.method protected hasTitle()Z
    .locals 1

    .prologue
    .line 1189
    const/4 v0, 0x1

    return v0
.end method

.method protected hasVertLine()Z
    .locals 1

    .prologue
    .line 1251
    const/4 v0, 0x0

    return v0
.end method

.method protected incSettingsNum()V
    .locals 1

    .prologue
    .line 1205
    iget v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mSettingsNum:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mSettingsNum:I

    .line 1206
    return-void
.end method

.method protected isObjectEventConsumer(Lcom/nemustech/tiffany/world/TFObject;)Z
    .locals 1
    .parameter "object"

    .prologue
    .line 1179
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mEventConsumerList:Ljava/util/LinkedList;

    invoke-virtual {v0, p1}, Ljava/util/LinkedList;->contains(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method public isOwnerOf(Lcom/nemustech/tiffany/world/TFObject;)Z
    .locals 1
    .parameter "object"

    .prologue
    .line 1185
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v0, p1}, Lcom/nemustech/tiffany/world/TFHolder;->searchForChildObject(Lcom/nemustech/tiffany/world/TFObject;)Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected morphWidget(Z)V
    .locals 4
    .parameter "force"

    .prologue
    .line 1396
    if-nez p1, :cond_1

    .line 1397
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getPrefRowNum()I

    move-result v0

    if-lez v0, :cond_0

    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getPrefRowNum()I

    move-result v0

    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v1

    if-ne v0, v1, :cond_1

    .line 1398
    :cond_0
    iget-object p0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    .end local p0
    check-cast p0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/RGWorkspace;->requestUpdate()V

    .line 1468
    :goto_0
    return-void

    .line 1403
    .restart local p0
    :cond_1
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFHolder;->lock()V

    .line 1404
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    new-instance v1, Lcom/nemustech/regina/ElementReginaWidget$16;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/ElementReginaWidget$16;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 1446
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x0

    const-wide/16 v2, 0x96

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->fade(FJ)V

    .line 1447
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    new-instance v1, Lcom/nemustech/regina/ElementReginaWidget$17;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/ElementReginaWidget$17;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    goto :goto_0
.end method

.method protected abstract onCreate()V
.end method

.method protected abstract onDrawBackItem(Landroid/graphics/Bitmap;Landroid/graphics/Rect;I)V
.end method

.method protected abstract onDrawBackTitle(Landroid/graphics/Bitmap;Landroid/graphics/Rect;)V
.end method

.method protected abstract onDrawFrontItem(Landroid/graphics/Bitmap;Landroid/graphics/Rect;I)V
.end method

.method protected abstract onDrawFrontTitle(Landroid/graphics/Bitmap;Landroid/graphics/Rect;)V
.end method

.method protected abstract onUpdate()Z
.end method

.method protected abstract onUpdateTitle()Z
.end method

.method public refreshBackCenterItemPanel()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 1712
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x0

    invoke-virtual {v0, v1, v2, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1713
    iget-object p0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    .end local p0
    check-cast p0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/RGWorkspace;->requestUpdate()V

    .line 1714
    return-void
.end method

.method protected refreshFrontCenter()V
    .locals 4

    .prologue
    const/4 v2, 0x0

    .line 1471
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFHolder;->lock()V

    .line 1472
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x0

    invoke-virtual {v0, v1, v2, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1473
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x0

    const-wide/16 v2, 0x96

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->fade(FJ)V

    .line 1474
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    new-instance v1, Lcom/nemustech/regina/ElementReginaWidget$18;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/ElementReginaWidget$18;-><init>(Lcom/nemustech/regina/ElementReginaWidget;)V

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 1502
    return-void
.end method

.method public resetGadgets(I)V
    .locals 2
    .parameter "widgetFace"

    .prologue
    .line 1338
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mGadgetList:Ljava/util/ArrayList;

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/LinkedList;

    .line 1339
    .local v0, list:Ljava/util/LinkedList;,"Ljava/util/LinkedList<Lcom/nemustech/regina/ElementReginaWidget$Gadget;>;"
    if-eqz v0, :cond_0

    .line 1340
    invoke-virtual {v0}, Ljava/util/LinkedList;->clear()V

    .line 1341
    :cond_0
    return-void
.end method

.method protected resetPages(I)V
    .locals 2
    .parameter "itemCount"

    .prologue
    .line 2274
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v0

    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mItemNumPerPageList:Ljava/util/ArrayList;

    invoke-direct {p0, p1, v0, v1}, Lcom/nemustech/regina/ElementReginaWidget;->initPageCountList(IILjava/util/List;)V

    .line 2275
    return-void
.end method

.method protected saveRowNum(I)V
    .locals 1
    .parameter "rowCount"

    .prologue
    .line 1213
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v0

    if-eq v0, p1, :cond_0

    .line 1214
    invoke-virtual {p0, p1}, Lcom/nemustech/regina/ElementReginaWidget;->setRowNum(I)V

    .line 1215
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0, p0}, Lcom/nemustech/regina/ReginaLauncher;->updateRowNumDatabase(Lcom/nemustech/regina/Element;)V

    .line 1217
    :cond_0
    return-void
.end method

.method public setMaxAvailablePrefRowNum(I)V
    .locals 7
    .parameter "prefRowNum"

    .prologue
    const/4 v6, 0x1

    .line 1220
    const-string v3, "ElementReginaWidget"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "[setMaxAvailablePrefRowNum] prefRowNum="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, ", getRowNum()="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4, v6}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1221
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v3

    if-le p1, v3, :cond_1

    .line 1222
    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    check-cast v3, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v3}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v3

    const/4 v4, 0x0

    invoke-virtual {v3, p0, v4}, Lcom/nemustech/regina/ElementLocator;->getMaxReginaWidgetSpace(Lcom/nemustech/regina/Element;Lcom/nemustech/regina/RGWorkspace;)Landroid/graphics/Rect;

    move-result-object v1

    .line 1223
    .local v1, maxArea:Landroid/graphics/Rect;
    invoke-virtual {v1}, Landroid/graphics/Rect;->height()I

    move-result v3

    iget v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitle2DHeight:I

    sub-int/2addr v3, v4

    iget v4, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottom2DHeight:I

    sub-int v0, v3, v4

    .line 1224
    .local v0, centerAreaHeight:I
    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ElementReginaWidget;->getAvailableMorphRowCount(I)I

    move-result v2

    .line 1226
    .local v2, maxAvailableRowCount:I
    if-lez v2, :cond_0

    if-ge v2, p1, :cond_0

    .line 1227
    move p1, v2

    .line 1229
    :cond_0
    invoke-virtual {p0, p1}, Lcom/nemustech/regina/ElementReginaWidget;->setPrefRowNum(I)V

    .line 1230
    const-string v3, "ElementReginaWidget"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "[setMaxAvailablePrefRowNum] maxAvailableRowCount="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4, v6}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1234
    .end local v0           #centerAreaHeight:I
    .end local v1           #maxArea:Landroid/graphics/Rect;
    .end local v2           #maxAvailableRowCount:I
    :goto_0
    return-void

    .line 1232
    :cond_1
    invoke-virtual {p0, p1}, Lcom/nemustech/regina/ElementReginaWidget;->setPrefRowNum(I)V

    goto :goto_0
.end method

.method public setPrefRowNum(I)V
    .locals 0
    .parameter "prefRowNum"

    .prologue
    .line 1239
    iput p1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mPrefRowNum:I

    .line 1240
    return-void
.end method

.method protected setSettingsNum(I)V
    .locals 0
    .parameter "num"

    .prologue
    .line 1201
    iput p1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mSettingsNum:I

    .line 1202
    return-void
.end method

.method public update()V
    .locals 4

    .prologue
    .line 2034
    const/4 v0, 0x0

    .line 2036
    .local v0, isUpdateThumb:Z
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->updateTitle()Z

    move-result v0

    .line 2038
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->onUpdate()Z

    move-result v2

    if-eqz v2, :cond_1

    .line 2040
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->updateCenterPanel()V

    .line 2041
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->updateFrontCenterItemPanel()V

    .line 2042
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasBack()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 2043
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->updateBackCenterItemPanel()V

    .line 2045
    :cond_0
    invoke-direct {p0}, Lcom/nemustech/regina/ElementReginaWidget;->arrangePanelsInMainHolder()V

    .line 2046
    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mTitle2DHeight:I

    iget v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter2DHeight:I

    add-int/2addr v2, v3

    iget v3, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBottom2DHeight:I

    add-int/2addr v2, v3

    invoke-virtual {p0, v2}, Lcom/nemustech/regina/ElementReginaWidget;->setHeight2D(I)V

    .line 2047
    const/4 v0, 0x1

    .line 2050
    :cond_1
    if-eqz v0, :cond_2

    .line 2051
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v1

    .line 2052
    .local v1, workspace:Lcom/nemustech/regina/RGWorkspace;
    if-eqz v1, :cond_2

    .line 2053
    invoke-virtual {v1}, Lcom/nemustech/regina/RGWorkspace;->requestUpdate()V

    .line 2056
    .end local v1           #workspace:Lcom/nemustech/regina/RGWorkspace;
    :cond_2
    return-void
.end method

.method protected updateFrontCenterItemPanel()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 1664
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget v1, p0, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget v2, p0, Lcom/nemustech/regina/ElementReginaWidget;->mCenter3DHeight:F

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setSize(FF)V

    .line 1665
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x0

    invoke-virtual {v0, v1, v3, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1666
    return-void
.end method

.method public updateTitle()Z
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 1922
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->onUpdateTitle()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 1924
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mFrontTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v2, v1, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1926
    invoke-virtual {p0}, Lcom/nemustech/regina/ElementReginaWidget;->hasBack()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1927
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget;->mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v2, v1, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1929
    :cond_0
    const/4 v0, 0x1

    .line 1931
    :goto_0
    return v0

    :cond_1
    move v0, v2

    goto :goto_0
.end method

.method protected userDefActor()V
    .locals 0

    .prologue
    .line 1236
    return-void
.end method
